I have so many println(“”) in my codes .. I know it is messy … I want to put comment for each of the println(“”);
how to do that in VIM ? I mean I want to do that on multiple files.
Also if possible, can it detect whether the lines has // already or not … if the lines has been commented .. I don’t want to add new //
To append a
//commentto all uncommentedprintln(...)calls on their own lines:To comment out all the uncommented
println(...)calls on their own lines