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:
Ingo Karkat
2012-03-12 10:29:28 +01:00
parent 98cec44ef6
commit 4dd72ab0af
2 changed files with 6 additions and 0 deletions

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