Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/molok/vim-smartusline
Vim plugin that changes the color of the statusbar of the focused window according with the current mode (normal/insert/replace)
https://github.com/molok/vim-smartusline
Last synced: 2 months ago
JSON representation
Vim plugin that changes the color of the statusbar of the focused window according with the current mode (normal/insert/replace)
- Host: GitHub
- URL: https://github.com/molok/vim-smartusline
- Owner: molok
- Created: 2012-01-06T14:44:05.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2012-01-20T21:28:44.000Z (almost 13 years ago)
- Last Synced: 2024-08-01T16:44:14.095Z (5 months ago)
- Language: VimL
- Homepage:
- Size: 248 KB
- Stars: 34
- Watchers: 4
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- my-awesome-github-stars - molok/vim-smartusline - Vim plugin that changes the color of the statusbar of the focused window according with the current mode (normal/insert/replace) (Vim Script)
README
SmartusLine
-----------SmartusLine is Vim plugin that changes the color of the statusline of the
focused window according with the current mode (normal/insert/replace)it looks like this:
![SmartusLineGif](https://github.com/molok/vim-smartusline/raw/master/img/smartusline.gif)
by default it highlights the filename on your statusline only, you can change
that:let g:smartusline_string_to_highlight = '(%n) %f '
this is what you see in the picture.
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
other requirements are:
set nocompatible
syntax onalso the statusline option can't be empty, if you want to use the
default statusline you should set it explicitly in your vimrc, it should be
something like this:set statusline=%<%f\ %h%m%r%=%-14.(%l,%c%V%)\ %P
For a more complete documentation, read the help file (:help smartusline)
Enjoy!