vim: visual block select till character on every line

Viewed 1497
[
  {name: 'John'},
  {name: 'Plasmody'},
  {name: 'Kugelschreiber'},
  {name: 'Sarrah'},
]

If I am on the J and do C-v jjjj, how can I select till the second single quote? I am search something that works like C-v jjjj $ or at least a way to yank/replace/delete till the quote.

2 Answers

If you don't mind using a plugin you can use https://github.com/terryma/vim-multiple-cursors and then select the lines and then press <C-n>. You will get a cursor on each line and can then select and edit the text inside all the quotes at the same time.

Related