summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCiaran McCreesh <ciaranm@gentoo.org>2005-01-14 21:56:34 +0000
committerCiaran McCreesh <ciaranm@gentoo.org>2005-01-14 21:56:34 +0000
commit713e26d47115a0460fce9068c8753a025b401c99 (patch)
treefc83277ef359cc30af09fb30c76436f990d1a94f /app-editors/vim-core/files
parentMarked ~ppc (Manifest recommit) (diff)
downloadgentoo-2-713e26d47115a0460fce9068c8753a025b401c99.tar.gz
gentoo-2-713e26d47115a0460fce9068c8753a025b401c99.tar.bz2
gentoo-2-713e26d47115a0460fce9068c8753a025b401c99.zip
Update vimrc to only try to use ftplugins if we have a valid ftplugin directory (for livecds)
(Portage version: 2.0.51-r12)
Diffstat (limited to 'app-editors/vim-core/files')
-rw-r--r--app-editors/vim-core/files/vimrc7
1 files changed, 5 insertions, 2 deletions
diff --git a/app-editors/vim-core/files/vimrc b/app-editors/vim-core/files/vimrc
index ae3bc89d5826..c9c572608a74 100644
--- a/app-editors/vim-core/files/vimrc
+++ b/app-editors/vim-core/files/vimrc
@@ -58,8 +58,11 @@ if &term=="xterm"
set ttymouse=xterm2 " only works for >=xfree86-3.3.3, should be okay
endif
-" Enable plugin-provided filetype settings
-filetype plugin on
+" Enable plugin-provided filetype settings, but only if the ftplugin
+" directory exists (which it won't on livecds, for example).
+if isdirectory(expand("$VIMRUNTIME/ftplugin"))
+ filetype plugin on
+endif
" Uncomment the next line (or copy to your ~/.vimrc) for plugin-provided
" indent settings. Some people don't like these, so we won't turn them on by