Permalink
Browse files

gc<Count>c{motion} maps work as toggle

  • Loading branch information...
tomtom committed Nov 10, 2012
1 parent 8e01d1f commit 0945c6f985ab7ca415548fac052122eeff9e3be3
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugin/tcomment.vim
View
@@ -141,7 +141,7 @@ endif
if (g:tcommentMapLeaderOp1 != '')
exec 'nnoremap <silent> '. g:tcommentMapLeaderOp1 .' :let w:tcommentPos = getpos(".") \| set opfunc=tcomment#Operator<cr>g@'
for s:i in range(1, 9)
- exec 'nnoremap <silent> '. g:tcommentMapLeaderOp1 . s:i .'c :let w:tcommentPos = getpos(".") \| call tcomment#SetOption("count", '. s:i .') \| set opfunc=tcomment#OperatorAnyway<cr>g@'
+ exec 'nnoremap <silent> '. g:tcommentMapLeaderOp1 . s:i .'c :let w:tcommentPos = getpos(".") \| call tcomment#SetOption("count", '. s:i .') \| set opfunc=tcomment#Operator<cr>g@'
endfor
unlet s:i
exec 'nnoremap <silent> '. g:tcommentMapLeaderOp1 .'c :let w:tcommentPos = getpos(".") \| set opfunc=tcomment#OperatorLine<cr>g@$'

0 comments on commit 0945c6f

Please sign in to comment.