Merge pull request #63 from inkarkat/add-repeat-support

Make mappings repeatable with . through repeat.vim
This commit is contained in:
Martin Grenfell 2012-03-12 03:21:11 -07:00
commit 20e089f6b9
2 changed files with 6 additions and 0 deletions

View File

@ -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*

View File

@ -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