From e158c40bcae1d2553d0ed9ac7d8fb85562915372 Mon Sep 17 00:00:00 2001 From: Frank Terbeck Date: Thu, 6 Aug 2009 17:27:16 +0200 Subject: [PATCH] vimrc: Move inclusion of .local files to the end That's where is makes most sense. --- etc/vim/vimrc | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/etc/vim/vimrc b/etc/vim/vimrc index 011311b..79c7ab6 100644 --- a/etc/vim/vimrc +++ b/etc/vim/vimrc @@ -103,12 +103,6 @@ let &titleold = fnamemodify(&shell, ":t") endif -" Source a global configuration file if available -" Deprecated by Debian but still supported by grml - if filereadable("/etc/vim/vimrc.local") - source /etc/vim/vimrc.local - endif - " turn these ON: set ek hidden ruler sc vb wmnu " set digraph @@ -183,11 +177,6 @@ source /usr/share/doc/mercurial/examples/vim/hg-menu.vim endif -" source local configuration file - if filereadable(expand("$HOME/.vimrc.local")) - source $HOME/.vimrc.local - endif - " Vim 7 brings cool new features - see ':he version7'! " The coolest features of Vim7 by mika " ==================================== @@ -255,6 +244,16 @@ if version >= 700 " highlight PmenuSel ctermbg=7 guifg=Black guibg=Orange " selected item " highlight PmenuSbar ctermbg=7 guifg=#CCCCCC guibg=#CCCCCC " scrollbar " highlight PmenuThumb cterm=reverse gui=reverse guifg=Black guibg=#AAAAAA " thumb of the scrollbar - endif + +" Source a global configuration file if available +" Deprecated by Debian but still supported by grml + if filereadable("/etc/vim/vimrc.local") + source /etc/vim/vimrc.local + endif + +" source user-specific local configuration file + if filereadable(expand("$HOME/.vimrc.local")) + source $HOME/.vimrc.local + endif "# END OF FILE ################################################################# -- 2.1.4