简体   繁体   中英

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

在此输入图像描述

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM