Explorar el Código

Moved vimrc plugin sourcing to after main settings

This should not have any impact on behaviour, since the vimrc contains
settings that plugins should not override globally. Of course, if it
does turn out to have adverse effects, plugin registration should be
moved back.
Weiyi Lou hace 10 años
padre
commit
f821e48c12
Se han modificado 1 ficheros con 8 adiciones y 9 borrados
  1. 8 9
      vim/vimrc

+ 8 - 9
vim/vimrc

@@ -13,15 +13,6 @@ if has("syntax")
   syntax enable
 endif
 
-" Register plugins
-if filereadable(expand("~/dotfiles/vim/plugins.vim"))
-  source ~/dotfiles/vim/plugins.vim
-endif
-
-""""""""
-"" Tabs and Text Formatting
-""""""""""""""""""""""""""""""""""""""""""""""""""""""
-
 set nowrap
 set cursorline     " Highlight current line
 set expandtab      " convert tab characters into spaces
@@ -98,6 +89,14 @@ nnoremap <C-b> <C-a>
 " http://stackoverflow.com/a/8064607/127816
 vnoremap . :normal .<CR>
 
+""""""""
+"" Load Plugins
+""""""""""""""""""""""""""""""""""""""""""""""""""""""
+
+if filereadable(expand("~/dotfiles/vim/plugins.vim"))
+  source ~/dotfiles/vim/plugins.vim
+endif
+
 """"""""
 "" Load Settings Files
 """"""""""""""""""""""""""""""""""""""""""""""""""""""