Abbreviate Vim mode entries.

This commit is contained in:
Scott Wallace 2015-10-26 20:52:22 +00:00
parent aa1a43c12d
commit 93c73667d4

41
.vimrc
View file

@ -63,20 +63,33 @@ au BufRead,BufNewFile *.go set filetype=go
" Lightline " Lightline
set laststatus=2 set laststatus=2
let g:lightline = { let g:lightline = {
\ 'colorscheme': 'hybrid', \ 'colorscheme': 'hybrid',
\ 'active': { \ 'active': {
\ 'left': [ [ 'mode', 'paste' ], \ 'left': [ [ 'mode', 'paste' ],
\ [ 'fugitive', 'readonly', 'filename', 'modified' ] ] \ [ 'fugitive', 'readonly', 'filename', 'modified' ] ]
\ }, \ },
\ 'component_function': { \ 'component_function': {
\ 'fugitive': 'LightLineFugitive', \ 'fugitive': 'LightLineFugitive',
\ 'readonly': 'LightLineReadonly', \ 'readonly': 'LightLineReadonly',
\ 'modified': 'LightLineModified', \ 'modified': 'LightLineModified',
\ 'filename': 'LightLineFilename' \ 'filename': 'LightLineFilename'
\ }, \ },
\ 'separator': { 'left': '', 'right': '' }, \ 'mode_map': {
\ 'subseparator': { 'left': '>', 'right': '<' } \ 'n' : 'N',
\ } \ 'i' : 'I',
\ 'R' : 'R',
\ 'v' : 'V',
\ 'V' : 'V-L',
\ "\<C-v>": 'V-B',
\ 'c' : 'C',
\ 's' : 'S',
\ 'S' : 'S-L',
\ "\<C-s>": 'S-B',
\ '?': ' '
\ },
\ 'separator': { 'left': '', 'right': '' },
\ 'subseparator': { 'left': '>', 'right': '<' }
\ }
function! LightLineModified() function! LightLineModified()
if &filetype == "help" if &filetype == "help"