remove the default value from mode_map

This commit is contained in:
itchyny
2016-04-23 13:49:34 +09:00
parent 9a6adb2780
commit cc52241a87
2 changed files with 5 additions and 5 deletions

View File

@@ -2,7 +2,7 @@
" Filename: autoload/lightline.vim
" Author: itchyny
" License: MIT License
" Last Change: 2016/04/20 22:49:50.
" Last Change: 2016/04/23 13:49:04.
" =============================================================================
let s:save_cpo = &cpo
@@ -126,7 +126,7 @@ let s:_lightline = {
\ 'colorscheme': 'default',
\ 'mode_map': {
\ 'n': 'NORMAL', 'i': 'INSERT', 'R': 'REPLACE', 'v': 'VISUAL', 'V': 'V-LINE', "\<C-v>": 'V-BLOCK',
\ 'c': 'COMMAND', 's': 'SELECT', 'S': 'S-LINE', "\<C-s>": 'S-BLOCK', 't': 'TERMINAL', '?': ''
\ 'c': 'COMMAND', 's': 'SELECT', 'S': 'S-LINE', "\<C-s>": 'S-BLOCK', 't': 'TERMINAL'
\ },
\ 'separator': { 'left': '', 'right': '' },
\ 'subseparator': { 'left': '|', 'right': '|' },
@@ -212,7 +212,7 @@ function! lightline#palette() abort
endfunction
function! lightline#mode() abort
return get(s:lightline.mode_map, mode(), s:lightline.mode_map['?'])
return get(s:lightline.mode_map, mode(), '')
endfunction
let s:mode = ''

View File

@@ -4,7 +4,7 @@ Version: 0.0
Author: itchyny (https://github.com/itchyny)
License: MIT License
Repository: https://github.com/itchyny/lightline.vim
Last Change: 2016/04/15 22:26:52.
Last Change: 2016/04/23 13:49:14.
CONTENTS *lightline-contents*
@@ -223,7 +223,7 @@ OPTIONS *lightline-option*
\ 'S' : 'S-LINE',
\ "\<C-s>": 'S-BLOCK',
\ 't': 'TERMINAL',
\ '?': '' }
\ }
<
When you search a word, you get into the command mode. But if
you want to keep the mode indicator as 'NORMAL', add >