Lokaltog/vim-powerline — Issue #65: powerline crashes after source vimrc
Author: regedarek
Created: 2012-01-24 15:08:15+00:00
State: open

When i source vimrc i receive errors:
http://img440.imageshack.us/img440/644/workspace1007.png

```
E15: incorrect phrase: split(globpath(&rtp, 'powerline/'. g:Powerline_theme
.'.vim', 1), '\n')[0]
wiersz 9:
E121: unknown variable: main_path
E116: Too many argumengs for empty(main_path) && filereadable(main_pa
th)
E15: incorrect phrase: ! empty(main_path) && filereadable(main_path)

I tried to use tips from here: https://github.com/Lokaltog/vim-powerline/issues/28

```
autocmd bufwritepost .vimrc source ~/.vimrc
autocmd bufwritepost .vimrc call Pl#Load()
autocmd BufDelete * call Pl#Load()
```