mirror of
https://github.com/itchyny/lightline.vim.git
synced 2025-11-14 06:23:51 -05:00
improve the help of mode_map
This commit is contained in:
@@ -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: 2015/11/04 08:30:43.
|
Last Change: 2016/03/20 09:33:37.
|
||||||
|
|
||||||
CONTENTS *lightline-contents*
|
CONTENTS *lightline-contents*
|
||||||
|
|
||||||
@@ -207,7 +207,8 @@ OPTIONS *lightline-option*
|
|||||||
powerline theme.
|
powerline theme.
|
||||||
|
|
||||||
g:lightline.mode_map *g:lightline.mode_map*
|
g:lightline.mode_map *g:lightline.mode_map*
|
||||||
A dictionary of names for mode.
|
A dictionary of names for the modes. The keys are the return
|
||||||
|
values of |mode()|.
|
||||||
The default value is:
|
The default value is:
|
||||||
>
|
>
|
||||||
let g:lightline.mode_map = {
|
let g:lightline.mode_map = {
|
||||||
@@ -216,19 +217,18 @@ OPTIONS *lightline-option*
|
|||||||
\ 'R' : 'REPLACE',
|
\ 'R' : 'REPLACE',
|
||||||
\ 'v' : 'VISUAL',
|
\ 'v' : 'VISUAL',
|
||||||
\ 'V' : 'V-LINE',
|
\ 'V' : 'V-LINE',
|
||||||
\ 'c' : 'COMMAND',
|
|
||||||
\ "\<C-v>": 'V-BLOCK',
|
\ "\<C-v>": 'V-BLOCK',
|
||||||
|
\ 'c' : 'COMMAND',
|
||||||
\ 's' : 'SELECT',
|
\ 's' : 'SELECT',
|
||||||
\ 'S' : 'S-LINE',
|
\ 'S' : 'S-LINE',
|
||||||
\ "\<C-s>": 'S-BLOCK',
|
\ "\<C-s>": 'S-BLOCK',
|
||||||
\ '?': ' ' }
|
\ '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 >
|
||||||
>
|
let g:lightline = { 'mode_map': { 'c': 'NORMAL' } }
|
||||||
let g:lightline.mode_map.c = 'NORMAL'
|
< to your .vimrc.
|
||||||
<
|
|
||||||
to your .vimrc.
|
|
||||||
|
|
||||||
g:lightline.separator *g:lightline.separator*
|
g:lightline.separator *g:lightline.separator*
|
||||||
g:lightline.subseparator *g:lightline.subseparator*
|
g:lightline.subseparator *g:lightline.subseparator*
|
||||||
|
|||||||
Reference in New Issue
Block a user