mirror of
https://github.com/preservim/nerdcommenter.git
synced 2024-12-01 21:24:25 +08:00
Make mappings repeatable with . through repeat.vim
Use of repeat.vim is purely optional, but very beneficial for typical commenting uses.
This commit is contained in:
parent
98cec44ef6
commit
4dd72ab0af
|
@ -139,6 +139,10 @@ left side (|<Leader>|cl) or both sides (|<Leader>|cb).
|
||||||
[count]|<Leader>|cu |NERDComUncommentLine|
|
[count]|<Leader>|cu |NERDComUncommentLine|
|
||||||
Uncomments the selected line(s).
|
Uncomments the selected line(s).
|
||||||
|
|
||||||
|
|
||||||
|
With the optional repeat.vim plugin (vimscript #2136), the mappings can also
|
||||||
|
be repeated via |.|
|
||||||
|
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
3.2 Functionality details *NERDComFunctionalityDetails*
|
3.2 Functionality details *NERDComFunctionalityDetails*
|
||||||
|
|
||||||
|
|
|
@ -1128,6 +1128,8 @@ function! NERDComment(mode, type) range
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let &ignorecase = oldIgnoreCase
|
let &ignorecase = oldIgnoreCase
|
||||||
|
|
||||||
|
silent! call repeat#set("\<Plug>NERDCommenter". a:type)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" Function: s:PlaceDelimitersAndInsBetween() function {{{2
|
" Function: s:PlaceDelimitersAndInsBetween() function {{{2
|
||||||
|
|
Loading…
Reference in New Issue
Block a user