vimstatusline

Vim statusline loses colors after reopening session


I tweaked my statusline in vim a little, and started to like it. I use autosession.vim so when I reopen, I have the same files open, but the statusline loses all color settings. If I wipe buffer and reopen, the colors are back (or, if I source ~/.vimrc). Am I doing something wrong or is it just the nature of buffer, that after reopening session the statusline loses color settings? Pictures follow: Colored

After reopening

It might be worth mentioning that I use gvim on ArchLinux.


Solution

  • You can debug what overrides the statusline setting by doing

    :verbose set statusline?
    

    This will tell you were the value was last set

      statusline=.....
        Last set from C:\Program Files\Vim\_vimrc