mirror of
https://github.com/preservim/nerdcommenter.git
synced 2025-11-12 03:33:48 -05:00
make the mappings to being with <leader>
This commit is contained in:
@@ -2725,21 +2725,21 @@ function! s:CreateMaps(target, combo)
|
||||
endfunction
|
||||
|
||||
if g:NERDCreateDefaultMappings
|
||||
call s:CreateMaps('<plug>NERDCommenterComment', ',cc')
|
||||
call s:CreateMaps('<plug>NERDCommenterToggle', ',c<space>')
|
||||
call s:CreateMaps('<plug>NERDCommenterMinimal', ',cm')
|
||||
call s:CreateMaps('<plug>NERDCommenterSexy', ',cs')
|
||||
call s:CreateMaps('<plug>NERDCommenterInvert', ',ci')
|
||||
call s:CreateMaps('<plug>NERDCommenterYank', ',cy')
|
||||
call s:CreateMaps('<plug>NERDCommenterAlignLeft', ',cl')
|
||||
call s:CreateMaps('<plug>NERDCommenterAlignBoth', ',cb')
|
||||
call s:CreateMaps('<plug>NERDCommenterNest', ',cn')
|
||||
call s:CreateMaps('<plug>NERDCommenterUncomment', ',cu')
|
||||
call s:CreateMaps('<plug>NERDCommenterToEOL', ',c$')
|
||||
call s:CreateMaps('<plug>NERDCommenterAppend', ',cA')
|
||||
call s:CreateMaps('<plug>NERDCommenterComment', '<leader>cc')
|
||||
call s:CreateMaps('<plug>NERDCommenterToggle', '<leader>c<space>')
|
||||
call s:CreateMaps('<plug>NERDCommenterMinimal', '<leader>cm')
|
||||
call s:CreateMaps('<plug>NERDCommenterSexy', '<leader>cs')
|
||||
call s:CreateMaps('<plug>NERDCommenterInvert', '<leader>ci')
|
||||
call s:CreateMaps('<plug>NERDCommenterYank', '<leader>cy')
|
||||
call s:CreateMaps('<plug>NERDCommenterAlignLeft', '<leader>cl')
|
||||
call s:CreateMaps('<plug>NERDCommenterAlignBoth', '<leader>cb')
|
||||
call s:CreateMaps('<plug>NERDCommenterNest', '<leader>cn')
|
||||
call s:CreateMaps('<plug>NERDCommenterUncomment', '<leader>cu')
|
||||
call s:CreateMaps('<plug>NERDCommenterToEOL', '<leader>c$')
|
||||
call s:CreateMaps('<plug>NERDCommenterAppend', '<leader>cA')
|
||||
|
||||
if !hasmapto('<plug>NERDCommenterAltDelims', 'n')
|
||||
nmap ,ca <plug>NERDCommenterAltDelims
|
||||
nmap <leader>ca <plug>NERDCommenterAltDelims
|
||||
endif
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user