Search and Replace 0
Replace every instance of 'aaa' with 'xaaax'.
Start file
aaa aab abb bbb aaa aab abb bbb aaa aab abb bbb aaa aab abb bbb aaa aab abb bbb
End file
xaaax aab abb bbb xaaax aab abb bbb xaaax aab abb bbb xaaax aab abb bbb xaaax aab abb bbb
View Diff
1c1 < aaa --- > xaaax 5c5 < aaa --- > xaaax 9c9 < aaa --- > xaaax 13c13 < aaa --- > xaaax 17c17 < aaa --- > xaaax
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 1649 remaining solutions by signing in and submitting your own entry
#1650 Heissen Lรณpez / @heilop - Score: 140 - 06/15/20 @ 21:30
<Esc>%i<Esc>%<Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Esc>%/aaa/xaaax/g<CR><Up><Down><Esc>%/aaa/Replace<CR><CR><Esc>:%/aaa/xax<BS>aax/g<CR><Esc>:%s/aaa/xaaax/g<CR><Esc>:wq!<CR>
0 comments
Created by: @wolever Tweet
1650 active golfers, 5062 entries
Leaderboard (lowest score wins):
#1349 - Pradeep Kumar ๐ฎ๐ณ๐ฎ๐ณ๐ฎ๐ณ๐ฎ๐ฑ๐ฎ๐ฑ๐ฎ๐ฑ / @pradeep6kumar
12/12/2012 at 02:08PM
VimGolf