mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 06:10:05 +08:00
Fix comment paragraphs
This commit is contained in:
parent
1193760c92
commit
3516b9fd90
@ -76,8 +76,8 @@ function! SpaceVim#mapping#space#init() abort
|
|||||||
" line is commented, all selected lines are uncommented and vice versa.
|
" line is commented, all selected lines are uncommented and vice versa.
|
||||||
call SpaceVim#mapping#space#def('nmap', ['c', 'l'], '<Plug>NERDCommenterComment', 'comment lines', 0, 1)
|
call SpaceVim#mapping#space#def('nmap', ['c', 'l'], '<Plug>NERDCommenterComment', 'comment lines', 0, 1)
|
||||||
call SpaceVim#mapping#space#def('nmap', ['c', 'L'], '<Plug>NERDCommenterInvert', 'toggle comment lines', 0, 1)
|
call SpaceVim#mapping#space#def('nmap', ['c', 'L'], '<Plug>NERDCommenterInvert', 'toggle comment lines', 0, 1)
|
||||||
call SpaceVim#mapping#space#def('nmap', ['c', 'p'], 'vip\<Plug>NERDCommenterComment', 'comment paragraphs', 0, 1)
|
call SpaceVim#mapping#space#def('nmap', ['c', 'p'], 'vip<Plug>NERDCommenterComment', 'comment paragraphs', 0, 1)
|
||||||
call SpaceVim#mapping#space#def('nmap', ['c', 'P'], 'vip\<Plug>NERDCommenterInvert', 'toggle comment paragraphs', 0, 1)
|
call SpaceVim#mapping#space#def('nmap', ['c', 'P'], 'vip<Plug>NERDCommenterInvert', 'toggle comment paragraphs', 0, 1)
|
||||||
" in nerdcomment if has map to <plug>... the default mapping will be
|
" in nerdcomment if has map to <plug>... the default mapping will be
|
||||||
" disable, so we add it for compatibility
|
" disable, so we add it for compatibility
|
||||||
nmap <Leader>cc <Plug>NERDCommenterComment
|
nmap <Leader>cc <Plug>NERDCommenterComment
|
||||||
|
Loading…
Reference in New Issue
Block a user