Open dantezhu opened 2 years ago
the text will changed to:
|abcd/ efg / |
but the right result should be:
|abcd/ ef /g |
You're right of course. The reason for this is that (within the approach of tcomment) there didn't seem to be a reliable way to distingish between the last and the last but one position in a line. Maybe vim/vimscript have changed in the meantime to allow distinguishing between these two situations without having to change too much in the plugin code. If you know of a way to handle this consistently across operating systems, while taking into account all possible option values, please let me know.
@tomtom got it, tks
One more remark: (for this reason) tcomment also supports "comment
everything to the right" (
Env
Steps to reproduce problem:
prepare text line like below:
type
v
to enter visual mode, and selectef
, like below:type
gc
the text will changed to:
but the right result should be: