mirror of
https://github.com/preservim/nerdcommenter.git
synced 2025-11-14 12:43:47 -05:00
one more menu mode
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user