multiple cursor alternative
from: https://www.reddit.com/r/vim/comments/6w5pfa/crosspost_from_remacs_how_would_you_do_this_in_vim/
Start file
<section class="top-bar-selection">
<ul class="left">
<li class="divider"></li>
<li class="active">
<a href="homepage.html">Page 1</a></li>
<li class="divider"></li>
<li>
<a href="homepage.html">Page 2</a></li>
<li class="divider"></li>
<li>
<a href="homepage.html">Page 3</a></li>
<li class="divider"></li>
<li>
<a href="homepage.html">Page 4</a></li>
</ul>
</section>
End file
<section class="top-bar-selection">
<ul class="left">
<li class="divider"></li>
<li class="active">
<a href="Page1.html">Page 1</a></li>
<li class="divider"></li>
<li>
<a href="Page2.html">Page 2</a></li>
<li class="divider"></li>
<li>
<a href="Page3.html">Page 3</a></li>
<li class="divider"></li>
<li>
<a href="Page4.html">Page 4</a></li>
</ul>
</section>
View Diff
5c5
< <a href="homepage.html">Page 1</a></li>
---
> <a href="Page1.html">Page 1</a></li>
8c8
< <a href="homepage.html">Page 2</a></li>
---
> <a href="Page2.html">Page 2</a></li>
11c11
< <a href="homepage.html">Page 3</a></li>
---
> <a href="Page3.html">Page 3</a></li>
14c14
< <a href="homepage.html">Page 4</a></li>
---
> <a href="Page4.html">Page 4</a></li>
Solutions
The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!
Check out these helpful resources to improve your Vim skills... Game on.
Unlock 380 remaining solutions by signing in and submitting your own entry
#381 Daniel Rasmuson / @danielrasmuson - Score: 85 - 09/06/17 @ 06:04
/home<CR>vi"xiPage1.html<Esc>jjjvi"xiPage2.html<Esc>jjjvi"xiPage3.html<Esc>jjjvi"xiPage5<BS>4.html<Esc>:wq<CR>
0 comments