1

I installed vim-powerline and was wondering how to change the backlground colour of the normal mode -- currently set to #adf000 according to the Gimp -- to something else. I assume that the change will be in autoload/Powerline/Colorschemes/XXX.vim somewhere, I just cannot find it.

2
  • Are you looking for the file, or the line in the file to do the change? Commented Aug 21, 2012 at 11:21
  • @M'vy: the lines to change as well as a good explanation of how it works... Hey, just like your answer in fact ^_~ Commented Aug 21, 2012 at 11:32

1 Answer 1

4

The colours of vim-powerline should be located in your .vim directory. If you use a plugin manager it may be .vim/bundle/ followed by the vim-powerline/autoload/Powerline/Colorschemes tree. The file you are looking for should be the default.vim.

The colour setting you are looking for is :

 .   \ Pl#Hi#Segments(['mode_indicator'], {¬        
 .   .   \ 'n': ['base03', 'green', ['bold']],¬     
 .   .   \ 'i': ['darkestcyan', 'white', ['bold']],¬
 .   .   \ 'v': ['white', 'orange', ['bold']],¬     
 .   .   \ 'r': ['white', 'violet', ['bold']],¬     
 .   .   \ 's': ['white', 'gray5', ['bold']],¬      
 .   .   \ }),¬                                     

n is for normal, i for insert, v for visual, r for replace and s for selection(?). Additional colours can be defined in the call Pl#Hi#Allocate({¬ section.

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.