Tom Link
Tom Link
> That doesn't seem right. > That's the way, tcomment works. If any line is not a comment, it is > assumed you want to comment the selected lines. If...
tcomment was modelled after how I remembered emacs was working. Remove comments if all lines are commented, comment out if any line is not commented out. The main reason I...
I currently don't use it but I don't have the time to write a full test suite for this anyway.
> Would you accept a PR to setup/use Vader then? > > If it came with useful specs/tests, probably yes. The use of Vader and > spec.vim aren't mutually exclusive...
This isn't handled by tcomment. IIRC there is some way in &comments to make vim act like that. You might want to check if the definitions of 'comments' differ for...
:help 'comments' :help format-comments HTH
I'm not sure what you mean by cancellation. `if` is supposed to visually select some text the operator works on. `gcif` should yield the same result as `vifgc`. tcomment thinks...
> Yes, but that might fail (in the case there is no function). That is the > special case about this issue. In HEAD, there is TComment_gC that could be...
> the text will changed to: > > |abcd/* efg */ | > > but the right result should be: > > |abcd/* ef */g | You're right of course....
One more remark: (for this reason) tcomment also supports "comment everything to the right" (r), which should do what you want to achieve.