From f4cbb7c00bf27478866b50dfa8dd7e947990f312 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Sat, 4 Nov 2017 15:31:28 +0800 Subject: [PATCH] Fix comment mappings close #952 close https://gitee.com/spacevim/SpaceVim/issues/IFVVH --- autoload/SpaceVim/mapping/space.vim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/autoload/SpaceVim/mapping/space.vim b/autoload/SpaceVim/mapping/space.vim index 421b20216..743d55a98 100644 --- a/autoload/SpaceVim/mapping/space.vim +++ b/autoload/SpaceVim/mapping/space.vim @@ -124,8 +124,9 @@ function! SpaceVim#mapping#space#init() abort " " Toggles the comment state of the selected line(s). If the topmost selected " line is commented, all selected lines are uncommented and vice versa. - call SpaceVim#mapping#space#def('nmap', ['c', 'l'], 'NERDCommenterComment', 'comment lines', 0, 1) - call SpaceVim#mapping#space#def('nmap', ['c', 'L'], 'NERDCommenterInvert', 'toggle comment lines', 0, 1) + call SpaceVim#mapping#space#def('nmap', ['c', 'l'], 'NERDCommenterInvert', 'comment or uncomment lines', 0, 1) + call SpaceVim#mapping#space#def('nmap', ['c', 'L'], 'NERDCommenterInvert', 'comment or uncomment lines invert', 0, 1) + call SpaceVim#mapping#space#def('nmap', ['c', 'v'], 'NERDCommenterInvertgv', 'comment or uncomment lines and keep visual', 0, 1) call SpaceVim#mapping#space#def('nmap', ['c', 'p'], 'vipNERDCommenterComment', 'comment paragraphs', 0, 1) call SpaceVim#mapping#space#def('nmap', ['c', 'P'], 'vipNERDCommenterInvert', 'toggle comment paragraphs', 0, 1)