Lokaltog/vim-powerline — Issue #46: highlights for status line disappeared after source vimrc with autocmd
Author: houqp
Created: 2012-01-17 19:19:52+00:00
State: open

I use following code to auto source vimrc:

```
au! BufWritePost .vimrc source $MYVIMRC
```

But after I save my .vimrc, those highlights in my status line disappeared (the content is still here). I have to call Pl#Load() to execute hi_cmd.

The most weird thing is if I manually type `source $MYVIMRC` in command mode, the highlight will not disappear.

I have tried to source my vimrc in other autocmd like GUIEnter and VimEnter, all behavior the same. :-(