Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

auto sourcing vimrc breaks powerline

Tags:

vim

I am running windows with gVim version 7.3-46 (32bit)

I have set up Vim to automatically source my .vimrc after saving it with

if has("autocmd")  
 autocmd bufwritepost vimrc.win source $MYVIMRC "Source config file on save  
endif

But when I issue the :w command my Powerline loses its color (it gets sourced indeed but breaks something). After reloading the file manually via :source $MYVIMRC the color returns. --> MYVIMRC

enter image description here

like image 420
Sensei Avatar asked May 12 '13 20:05

Sensei


1 Answers

Duplicate of issue 213. When resourcing vimrc always use autocmd-nested.

like image 77
ZyX Avatar answered Nov 12 '22 18:11

ZyX