New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document <Plug>TComment_ic #188
Comments
I can see the intent in C and Javascript inline comments. Wondering if it's be possible to have the same behavior for line comments - ie highlight the entire line. Going off tangent, I noticed you can't toggle an inline comment if it's at the end of a line: https://github.com/tomtom/tcomment_vim/blob/master/spec/tcomment/issue30_test_2.c
Running
|
I also think this should be documented, but honestly I just don't like it. It diverges from the normal text object pattern, where |
This addresses tomtom#255 and tomtom#188. It also partially addresses tomtom#237 (by making it clear that the functionality exists, even if it doesn't quite do what's being asked for there).
https://github.com/tomtom/tcomment_vim/blob/master/plugin/tcomment.vim#L198-L199
Recently tried to use the
ic
textobj for a different mapping only to find out it is already being used, but it's not clear what it does. As a visual operator it appears to select text backwards on the same line until thecommentstring
inclusive (observed on .vim style comments). Is this the intended behavior?The text was updated successfully, but these errors were encountered: