Closed nwaywood closed 3 years ago
I think this should be done as a custom vim map on top of tcomment. I don't see a convincing reason why this should be included in tcomment. You might also want to consider using a VCS instead of duplicating code.
@tomtom Any chance you could show how a custom vim map could use tcomment to do this? I tried without much success... (I'm not a vimscript pro)
A command that in addition to commenting (like
gcc
/gc
) also pastes an uncommented version of the code below the commented out version.For example:
Before running this command
After running this command with the three lines selected in visual mode
Something like the following:
I hope you like the idea!