Преглед изворни кода

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 пре 10 година
родитељ
комит
f821e48c12
1 измењених фајлова са 8 додато и 9 уклоњено
  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
 """"""""""""""""""""""""""""""""""""""""""""""""""""""