Currently, I'm using Vim Surround to make quoting easy on
- Multiple whole-lines
- Visual blocks
- Individual words
However, it doesn't seem to make the job easy on columns, for example. Take this question for example, I can get to this from the sample data
'A', owner_from , 12/17/2016 8:57:00 , 12/19/2016 9:01:05
'B', owner_to , 12/17/2016 8:57:00 , 12/17/2016 12:03:10
'B', closed , 12/17/2016 12:03:10
'C', opened , 12/18/2016 4:57:36 , 12/18/2016 4:57:36
'C', owner_to , 12/18/2016 4:57:36 , 12/18/2016 4:57:36
'C', owner_from , 12/18/2016 4:57:36 , 12/18/2016 10:20:37
'C', owner_to , 12/18/2016 10:20:37 , 12/18/2016 12:32:56
'D', owner_from , 12/18/2016 10:20:37 , 12/18/2016 10:36:53
'E', owner_from , 12/18/2016 10:36:53
'D', owner_to , 12/18/2016 10:36:53 , 12/20/2016 9:23:34
'C', closed , 12/18/2016 12:32:56 , 12/19/2016 4:48:33
'C', opened , 12/19/2016 4:48:33 , 12/19/2016 6:55:39
'C', closed , 12/19/2016 6:55:39
'A', opened , 12/19/2016 9:01:05 , 12/19/2016 9:01:05
'A', owner_to , 12/19/2016 9:01:05 , 12/19/2016 9:01:05
'A', owner_from , 12/19/2016 9:01:05 , 12/19/2016 9:04:58
'A', closed , 12/19/2016 9:04:58 , 12/19/2016 9:08:21
But I can not continue and quote that second column whose first row has owner_from
. What I want to do is
- select the
[o]wnerfrom
and change all the inner words from the top to the bottom. - or, select the entire word and have it quote just the word and note white space.
I'd like to know if this can be done using vim-surround first, and if not if there is a better way to do it.