Skip to content

Commit

Permalink
Make mappings repeatable with . through repeat.vim
Browse files Browse the repository at this point in the history
Use of repeat.vim is purely optional, but very beneficial for typical commenting uses.
  • Loading branch information
inkarkat committed Mar 12, 2012
1 parent 98cec44 commit 4dd72ab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/NERD_commenter.txt
Expand Up @@ -139,6 +139,10 @@ left side (|<Leader>|cl) or both sides (|<Leader>|cb).
[count]|<Leader>|cu |NERDComUncommentLine|
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*

Expand Down
2 changes: 2 additions & 0 deletions plugin/NERD_commenter.vim
Expand Up @@ -1128,6 +1128,8 @@ function! NERDComment(mode, type) range
endif

let &ignorecase = oldIgnoreCase

silent! call repeat#set("\<Plug>NERDCommenter". a:type)
endfunction

" Function: s:PlaceDelimitersAndInsBetween() function {{{2
Expand Down

0 comments on commit 4dd72ab

Please sign in to comment.