Sensei
Sensei

Reputation: 608

auto sourcing vimrc breaks powerline

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

Upvotes: 7

Views: 958

Answers (1)

ZyX
ZyX

Reputation: 53644

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

Upvotes: 2

Related Questions