mirror of
https://github.com/itchyny/lightline.vim.git
synced 2025-11-13 22:13:50 -05:00
remove the default value from mode_map
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
" Filename: autoload/lightline.vim
|
" Filename: autoload/lightline.vim
|
||||||
" Author: itchyny
|
" Author: itchyny
|
||||||
" License: MIT License
|
" License: MIT License
|
||||||
" Last Change: 2016/04/20 22:49:50.
|
" Last Change: 2016/04/23 13:49:04.
|
||||||
" =============================================================================
|
" =============================================================================
|
||||||
|
|
||||||
let s:save_cpo = &cpo
|
let s:save_cpo = &cpo
|
||||||
@@ -126,7 +126,7 @@ let s:_lightline = {
|
|||||||
\ 'colorscheme': 'default',
|
\ 'colorscheme': 'default',
|
||||||
\ 'mode_map': {
|
\ 'mode_map': {
|
||||||
\ 'n': 'NORMAL', 'i': 'INSERT', 'R': 'REPLACE', 'v': 'VISUAL', 'V': 'V-LINE', "\<C-v>": 'V-BLOCK',
|
\ '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': '' },
|
\ 'separator': { 'left': '', 'right': '' },
|
||||||
\ 'subseparator': { 'left': '|', 'right': '|' },
|
\ 'subseparator': { 'left': '|', 'right': '|' },
|
||||||
@@ -212,7 +212,7 @@ function! lightline#palette() abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! lightline#mode() abort
|
function! lightline#mode() abort
|
||||||
return get(s:lightline.mode_map, mode(), s:lightline.mode_map['?'])
|
return get(s:lightline.mode_map, mode(), '')
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
let s:mode = ''
|
let s:mode = ''
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ Version: 0.0
|
|||||||
Author: itchyny (https://github.com/itchyny)
|
Author: itchyny (https://github.com/itchyny)
|
||||||
License: MIT License
|
License: MIT License
|
||||||
Repository: https://github.com/itchyny/lightline.vim
|
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*
|
CONTENTS *lightline-contents*
|
||||||
|
|
||||||
@@ -223,7 +223,7 @@ OPTIONS *lightline-option*
|
|||||||
\ 'S' : 'S-LINE',
|
\ 'S' : 'S-LINE',
|
||||||
\ "\<C-s>": 'S-BLOCK',
|
\ "\<C-s>": 'S-BLOCK',
|
||||||
\ 't': 'TERMINAL',
|
\ 't': 'TERMINAL',
|
||||||
\ '?': '' }
|
\ }
|
||||||
<
|
<
|
||||||
When you search a word, you get into the command mode. But if
|
When you search a word, you get into the command mode. But if
|
||||||
you want to keep the mode indicator as 'NORMAL', add >
|
you want to keep the mode indicator as 'NORMAL', add >
|
||||||
|
|||||||
Reference in New Issue
Block a user