From 656f6b5beb378f2637079878797d952f8e9d7b9f Mon Sep 17 00:00:00 2001 From: Andy Wokula Date: Sun, 18 Dec 2016 17:39:03 +0100 Subject: [PATCH] Normalize case in keycodes --- autoload/nerdcommenter.vim | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/autoload/nerdcommenter.vim b/autoload/nerdcommenter.vim index 89a8291..a936030 100644 --- a/autoload/nerdcommenter.vim +++ b/autoload/nerdcommenter.vim @@ -2981,12 +2981,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, ' ') @@ -3010,7 +3010,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$') @@ -3028,10 +3028,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