tomtom / tcomment_vim

An extensible & universal comment vim-plugin that also handles embedded filetypes

Home Page:http://www.vim.org/scripts/script.php?script_id=1173

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fail to toggle, if no <space> after the comment sign

seaspeak opened this issue · comments

If you enter visual mode to select two lines, and put gcc, it yields a incorrect result.

filetype: vim

Fail

"Plug 'tomtom/tcomment_vim
Plug 'tomtom/tcomment_vim

becomes

" "Plug 'tomtom/tcomment_vim
" Plug 'tomtom/tcomment_vim

Successful:

"Plug
"Plug

or

Plug
Plug

or

" Plug
" Plug

The first line "Plug 'tomtom/tcomment_vim is commented. The second isn't. The result is both of them are commented. The first line is commented twice.

If this is as expected, than please close the issue. Thinking this through, it is a not bad and reasonable behavior for me.