one more menu mode

This commit is contained in:
Andy Wokula
2017-11-01 20:51:50 +01:00
parent 14004e00e0
commit 9d1b1d5827

View File

@@ -2991,7 +2991,7 @@ function! s:CreateMaps(modes, target, desc, combo)
let plug_end = '", "' . a:target . '")<CR>' let plug_end = '", "' . a:target . '")<CR>'
" Build up a menu command like " Build up a menu command like
" 'menu <silent> comment.Comment<Tab>\\cc <Plug>NERDCommenterComment' " 'menu <silent> comment.Comment<Tab>\\cc <Plug>NERDCommenterComment'
let menuRoot = get(['', 'comment', '&comment', '&Plugin.&comment'], let menuRoot = get(['', 'comment', '&comment', '&Plugin.&comment', '&Plugin.Nerd\ &Commenter'],
\ g:NERDMenuMode, '') \ g:NERDMenuMode, '')
let menu_command = 'menu <silent> ' . menuRoot . '.' . escape(a:desc, ' ') let menu_command = 'menu <silent> ' . menuRoot . '.' . escape(a:desc, ' ')
if strlen(a:combo) if strlen(a:combo)