From 93c73667d46b0fee9ae9142ac1293a1ce2d11ffa Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Mon, 26 Oct 2015 20:52:22 +0000 Subject: [PATCH] Abbreviate Vim mode entries. --- .vimrc | 41 +++++++++++++++++++++++++++-------------- 1 file changed, 27 insertions(+), 14 deletions(-) diff --git a/.vimrc b/.vimrc index e23531f..0eac23a 100644 --- a/.vimrc +++ b/.vimrc @@ -63,20 +63,33 @@ au BufRead,BufNewFile *.go set filetype=go " Lightline set laststatus=2 let g:lightline = { - \ 'colorscheme': 'hybrid', - \ 'active': { - \ 'left': [ [ 'mode', 'paste' ], - \ [ 'fugitive', 'readonly', 'filename', 'modified' ] ] - \ }, - \ 'component_function': { - \ 'fugitive': 'LightLineFugitive', - \ 'readonly': 'LightLineReadonly', - \ 'modified': 'LightLineModified', - \ 'filename': 'LightLineFilename' - \ }, - \ 'separator': { 'left': '', 'right': '' }, - \ 'subseparator': { 'left': '>', 'right': '<' } - \ } + \ 'colorscheme': 'hybrid', + \ 'active': { + \ 'left': [ [ 'mode', 'paste' ], + \ [ 'fugitive', 'readonly', 'filename', 'modified' ] ] + \ }, + \ 'component_function': { + \ 'fugitive': 'LightLineFugitive', + \ 'readonly': 'LightLineReadonly', + \ 'modified': 'LightLineModified', + \ 'filename': 'LightLineFilename' + \ }, + \ 'mode_map': { + \ 'n' : 'N', + \ 'i' : 'I', + \ 'R' : 'R', + \ 'v' : 'V', + \ 'V' : 'V-L', + \ "\": 'V-B', + \ 'c' : 'C', + \ 's' : 'S', + \ 'S' : 'S-L', + \ "\": 'S-B', + \ '?': ' ' + \ }, + \ 'separator': { 'left': '', 'right': '' }, + \ 'subseparator': { 'left': '>', 'right': '<' } + \ } function! LightLineModified() if &filetype == "help"