sponsor Vim development Vim logo go to HTTPS page Vim Book Ad

SmartusLine : Plugin that changes the color of the statusline according with the current mode

 script karma  Rating 13/4, Downloaded by 434    Comments, bugs, improvements  Vim wiki

created by
Alessio Bolognino
script type
SmartusLine is Vim plugin that changes the color of the statusline of the focused window according with the current mode (normal/insert/replace)

by default it highlights the filename on your statusline only, you can change that:

let g:smartusline_string_to_highlight = '(%n) %f '

You can also change the default colors of the highlight, the name are self-explanatory, the defaults are:

let g:smartusline_hi_replace = 'guibg=#e454ba guifg=black ctermbg=magenta ctermfg=black'
let g:smartusline_hi_insert = 'guibg=orange guifg=black ctermbg=58 ctermfg=black'
let g:smartusline_hi_virtual_replace = 'guibg=#e454ba guifg=black ctermbg=magenta ctermfg=black'
let g:smartusline_hi_normal = 'guibg=#95e454 guifg=black ctermbg=lightgreen ctermfg=black'

note: you probably want to set the statusline to never hide, like this:

set laststatus=2

Git repo available at https://github.com/molok/vim-smartusline

please file bugs on github: https://github.com/molok/vim-smartusline/issues
install details
Extract it in your ~/.vim (Linux/BSD/Mac OS X)  or ~/_vimfiles (Win32)

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
vim-smartusline-0.3.zip 0.3 2012-01-24 7.0 Alessio Bolognino Less bugs, more features! (Read the help file)
vim-smartusline-0.2.1.zip 0.2.1 2012-01-07 7.0 Alessio Bolognino Added help file, fixed a couple of bugs
vim-smartusline-0.2.zip 0.2 2012-01-06 7.0 Alessio Bolognino Added check for empty statusline and fixed a small bug on GVim initialization
vim-smartusline-0.1.zip 0.1 2012-01-06 7.0 Alessio Bolognino removed debug echo I left in the code
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
SourceForge.net Logo