diff --git a/autoload/nerdcommenter.vim b/autoload/nerdcommenter.vim index 867d0e7..d235bd8 100644 --- a/autoload/nerdcommenter.vim +++ b/autoload/nerdcommenter.vim @@ -2980,12 +2980,12 @@ endfunction " also define mappings and show a:combo in the menu items. function! s:CreateMaps(modes, target, desc, combo) " Build up a map command like - " 'noremap NERDCommenterComment :call nerdcommenter#Comment("n", "Comment")' - let plug = 'NERDCommenter' . a:target + " 'noremap NERDCommenterComment :call nerdcommenter#Comment("n", "Comment")' + let plug = 'NERDCommenter' . a:target let plug_start = 'noremap ' . plug . ' :call nerdcommenter#Comment("' - let plug_end = '", "' . a:target . '")' + let plug_end = '", "' . a:target . '")' " Build up a menu command like - " 'menu comment.Comment\\cc NERDCommenterComment' + " 'menu comment.Comment\\cc NERDCommenterComment' let menuRoot = get(['', 'comment', '&comment', '&Plugin.&comment'], \ g:NERDMenuMode, '') let menu_command = 'menu ' . menuRoot . '.' . escape(a:desc, ' ') @@ -3006,7 +3006,7 @@ function! s:CreateMaps(modes, target, desc, combo) endfor endfunction call s:CreateMaps('nx', 'Comment', 'Comment', 'cc') -call s:CreateMaps('nx', 'Toggle', 'Toggle', 'c') +call s:CreateMaps('nx', 'Toggle', 'Toggle', 'c') call s:CreateMaps('nx', 'Minimal', 'Minimal', 'cm') call s:CreateMaps('nx', 'Nested', 'Nested', 'cn') call s:CreateMaps('n', 'ToEOL', 'To EOL', 'c$') @@ -3024,10 +3024,10 @@ call s:CreateMaps('i', 'Insert', 'Insert Comment Here', '') call s:CreateMaps('', ':', '-Sep3-', '') call s:CreateMaps('', ':help NERDCommenterContents', 'Help', '') -inoremap NERDCommenterInsert :call nerdcommenter#Comment('i', "insert") +inoremap NERDCommenterInsert :call nerdcommenter#Comment('i', "insert") " switch to/from alternative delimiters (does not use wrapper function) -nnoremap NERDCommenterAltDelims :call SwitchToAlternativeDelimiters(1) +nnoremap NERDCommenterAltDelims :call SwitchToAlternativeDelimiters(1) " This is a workaround to enable lazy-loading from supported plugin managers: " See https://github.com/scrooloose/nerdcommenter/issues/176