Ver Fonte

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 há 11 anos atrás
pai
commit
f821e48c12
1 ficheiros alterados com 8 adições e 9 exclusões
  1. 8 9
      vim/vimrc

+ 8 - 9
vim/vimrc

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