From cc52241a870bbe260d69a5f0c8c6ec81c726cb6e Mon Sep 17 00:00:00 2001 From: itchyny Date: Sat, 23 Apr 2016 13:49:34 +0900 Subject: [PATCH] remove the default value from mode_map --- autoload/lightline.vim | 6 +++--- doc/lightline.txt | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/autoload/lightline.vim b/autoload/lightline.vim index 0ee5975..1681fd4 100644 --- a/autoload/lightline.vim +++ b/autoload/lightline.vim @@ -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', "\": 'V-BLOCK', - \ 'c': 'COMMAND', 's': 'SELECT', 'S': 'S-LINE', "\": 'S-BLOCK', 't': 'TERMINAL', '?': '' + \ 'c': 'COMMAND', 's': 'SELECT', 'S': 'S-LINE', "\": '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 = '' diff --git a/doc/lightline.txt b/doc/lightline.txt index 2b2e500..28947bf 100644 --- a/doc/lightline.txt +++ b/doc/lightline.txt @@ -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', \ "\": '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 >