Browse files

Enable <c-_><Count> maps for insert mode

  • Loading branch information...
1 parent 0945c6f commit b4a0e1160e00210b6d5f348d1440069cbfe04f1d @tomtom committed Nov 10, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 plugin/tcomment.vim
View
3 plugin/tcomment.vim
@@ -3,7 +3,7 @@
" @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
" @Created: 27-Dez-2004.
" @Last Change: 2012-09-22.
-" @Revision: 753
+" @Revision: 756
" GetLatestVimScripts: 1173 1 tcomment.vim
if &cp || exists('loaded_tcomment')
@@ -122,6 +122,7 @@ if (g:tcommentMapLeader1 != '')
exec 'noremap '. g:tcommentMapLeader1 .'ca :<c-u>call tcomment#SetOption("as", input("Comment as: ", &filetype, "customlist,tcomment#Complete"))<cr>'
for s:i in range(1, 9)
exec 'noremap <silent> '. g:tcommentMapLeader1 . s:i .' :TComment count='. s:i .'<cr>'
+ exec 'inoremap <silent> '. g:tcommentMapLeader1 . s:i .' <c-\><c-o>:TComment count='. s:i .'<cr>'
exec 'vnoremap <silent> '. g:tcommentMapLeader1 . s:i .' :TCommentMaybeInline count='. s:i .'<cr>'
endfor
unlet s:i

0 comments on commit b4a0e11

Please sign in to comment.