S
S
Shainek2014-11-27 08:58:26
vim
Shainek, 2014-11-27 08:58:26

Vim: how to select multiple words of different lengths spanning multiple lines in block selection mode?

Let's say I have this code:

var = "Hello"
long_name_var = "World"
variable = "!"

How can I highlight the variable names? I tried to do it like this <C-v>2je: But it didn't work out.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Z
Zr, 2014-11-27
@shainek93

You can't do that with native Wim, but it seems you can with the multiple-cursors plugin. The original terryma/vim-multiple-cursors hasn't been updated for two years now as I see it now, you might want to use the kristijanhusak/vim-multiple-cursors fork .

H
habrahbarauser, 2014-11-27
@habrahbarauser

There are other ways to achieve this functionality in vim. Cm.:help repeat.txt

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question