molok / vim-smartusline

Vim plugin that changes the color of the statusbar of the focused window according with the current mode (normal/insert/replace)
34 stars 1 forks source link

Can't make it work #7

Closed skeept closed 12 years ago

skeept commented 12 years ago

I have tried to use this plugin but I can't seem to make it work

In the end of my vimrc I have the lines: set statusline=%<%f\ %h%m%r%=%-14.(%l,%c%V%)\ %P let g:smartusline_string_to_highlight = '(%n) %f '

but I can't see any part of the statusline highlighted. Is there anything I am missing?

molok commented 12 years ago

smartusline_string_to_highlight should be a substring of your statusline, so you could either change your statusline to set statusline=%<(%n) %f\ %h%m%r%=%-14.(%l,%c%V%)\ %P

or smartusline_string_to_highlight to

let g:smartusline_string_to_highlight = '%f '

skeept commented 12 years ago

Thanks now I understand how to configure it!