Просмотр исходного кода

fix powerline losing colour after sourcing vimrc

Weiyi Lou 13 лет назад
Родитель
Сommit
e0b706ea95
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      vim/vimrc

+ 3 - 0
vim/vimrc

@@ -63,6 +63,9 @@ if has("autocmd")
 
     " Source the vimrc file after saving it
     autocmd bufwritepost .vimrc source $MYVIMRC
+    autocmd bufwritepost .vimrc call Pl#Load()
+    " Reload Powerline colours after source
+    " https://github.com/Lokaltog/vim-powerline/issues/28
 
     " if the last window is NERDTree, then close Vim
     "autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif