Here's a snippet that I'm working with (* denotes cursor location)
*"First random string" ,"Random string I want to remove" } "Random string number 2" , "Another random string I want to keep" }
*"First random string" , } "Random string number 2" , "Another random string I want to keep" }
The brackets are aligned neatly with each other with spaces, and I want to remove the last argument from the first array (while maintaining the easy readability of the current bracket, and comma placement.
The easy answer (the one I'm forced to do for now) would be to count the number of characters in the string and do
<count>r<space> but that easily gets tedious with strings of the length I'm working with.
I'm sure there's a better way to directly replace the text. I'm sure that vim has a visual replace feature but
<select text>r<space> doesn't work.