Real Vim ninjas count every keystroke - do you?

Pick a challenge, fire up Vim, and show us what you got.

Changelog, Rules & FAQ, updates: @vimgolf, RSS.

Your VimGolf key: please sign in

$ gem install vimgolf
$ vimgolf setup
$ vimgolf put 4d1a8bf2b8cb3409320002c4

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 1451 remaining solutions by signing in and submitting your own entry
#1452 Zac sliker / @Zacsliker - Score: 111 - 01/29/20 @ 16:26
i<Esc>dw<Down><Down><Down><Down>dw<Down><Down><Down><Down>dw<Down><Down><Down><Down>dw<Down><Down><Down><Down>dwi<50-53>xaaax<Esc>[201~<Up><Up><Up><Up><50-53>xaaax<Esc>[201~<Up><Up><Up><Up><50-53>xaaax<Esc>[201~<Up><Up><Up><Up><50-53>xaaax<Esc>[201~<Up><Up><Up><Up><50-53>xaaax<Esc>[201~<Esc>:wq!<CR>

0 comments


Created by: @wolever

1452 active golfers, 4388 entries

Leaderboard (lowest score wins):
52
#1441 - Alonso Darias / @alonso_darias

01/31/2020 at 07:26AM

53
#1442 - firehaert_18 / @Firehaert1

01/31/2020 at 06:34AM

57
#1443 - Norhan Abbas / @NorhanAbbas4

02/01/2020 at 12:04AM

63
#1444 - alex ekstrom / @alexekstrom07

01/30/2020 at 08:07PM

64
#1445 - Ransom Bowman / @BowmanRansom

01/31/2020 at 07:08AM

66
#1446 - Attila / @attilaforgacs

01/29/2014 at 04:06AM

68
#1447 - Arnold / @Arnold59755

01/22/2020 at 05:57AM

71
#1448 - Josh Gruber / @Jevitate

01/23/2020 at 02:13AM

74
#1449 - Justin Williams / @DRPEPPERGUY1

01/27/2020 at 07:37PM

82
#1450 - Kajia Coziahr / @KajiaCoziahr

01/24/2020 at 10:19PM

96
#1451 - Richard Kaufman / @sparragus

12/29/2010 at 02:56PM

111
#1452 - Zac sliker / @Zacsliker

01/29/2020 at 04:26PM