Procházet zdrojové kódy

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 před 10 roky
rodič
revize
f821e48c12
1 změnil soubory, kde provedl 8 přidání a 9 odebrání
  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
 """"""""""""""""""""""""""""""""""""""""""""""""""""""