Created
March 10, 2017 15:34
-
-
Save tstelzer/03b083c3c6df1b20f290565988a04e6e to your computer and use it in GitHub Desktop.
minimal modeline
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function! ModeColor(mode) | |
| let s:modes = { | |
| \ 'n': '%#Normal#', | |
| \ 'v': '%#Visual#', | |
| \ 'V': '%#Visual#', | |
| \ '': '%#Visual#', | |
| \ } | |
| if !has_key(s:modes, a:mode) | |
| return '%#User3#' " default | |
| else | |
| return s:modes[a:mode] | |
| endif | |
| endfunction | |
| let &l:statusline = ModeColor(mode()) | |
| setlocal stl+=%{mode()} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Maybe you did not see the IRC ping but i actually solved it.