I need to highlight multiple words that are unrelated, eg:
aaa bbb
ccc ddd
I would like to highlight aaa
and ddd
, and keep cursor at both of those words,
so when I try to change the word for example cw
, it does for both of them.
I want to be able to do this without plugins.
Because somehow internal functions of some plugins don't work with macros.
There is this beautiful plugins, that does exactly what I need, but it doesn't work with macros.
EDIT (from comments): Let's say for example I want to change an HTML tag with it's corresponding closing tag. The only way to do that with a macro is to put a cursor at them both so you can operate on them.
The transition between a tag and a closing tag is easily done with a %
.
Now the problem with that article is that, imagine you have nested tags with the same name, there would be a problem when searching.
This is a gif of what I'm trying to achieve with macros:
%
. Now the problem with that article is that, imagine you have nested tags with the same name, there would be a problem when searching. this is a gif of what i'm trying to achieve with macros. i.imgur.com/G0A61QR.gif – Yassine Bridi May 15 '20 at 18:44