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):
26
#1411 - Michael Lustfield / @Profarius

12/29/2010 at 06:17AM

26
#1412 - Tsatsi Mahase / @tsatsi_mahase

12/15/2014 at 05:59PM

26
#1413 - UserForVimGolfMSU / @UserMsu

01/27/2020 at 07:30PM

27
#1414 - mracus / @macrsu

12/29/2010 at 07:29AM

27
#1415 - Ajith Antony / @ajithantony

12/29/2010 at 12:57PM

27
#1416 - Benjamin Small / @ph1g

12/29/2010 at 04:07PM

27
#1417 - Zach Bush / @zmbush

02/03/2014 at 07:58PM

27
#1418 - Alexander Bandukwala / @abanduk

06/16/2014 at 06:53PM

27
#1419 - E / @The_Ejaay

04/02/2019 at 02:01PM

28
#1420 - John / @fuzzyfuzz

12/29/2010 at 03:23AM

28
#1421 - Stefan Wintermeyer / @wintermeyer

12/29/2010 at 12:18PM

28
#1422 - Tomasz Muszynski / @herkii

12/31/2010 at 12:39PM

29
#1423 - papersmith / @papersmith

12/29/2010 at 02:43AM

29
#1424 - Nacho Barrientos / @nachobarrientos

12/29/2010 at 12:19PM

31
#1425 - Josh / @karlw00t

12/29/2010 at 01:23AM

31
#1426 - Josh Davey / @joshuadavey

12/29/2010 at 04:21AM

32
#1427 - Chris Faulkner / @bookdarts

12/29/2010 at 12:39PM

32
#1428 - Muzhou / @Muzhou11

02/01/2020 at 01:19AM

33
#1429 - lin / @l_shi1

01/31/2020 at 08:45AM

33
#1430 - HungkaiSun / @HungkaiSun

02/01/2020 at 01:21AM

34
#1431 - Timothy Hahn / @timyhahn

04/20/2012 at 03:31AM

36
#1432 - DJ Adams / @qmacro

12/29/2010 at 04:30PM

38
#1433 - Titan Tang / @titantang

12/29/2010 at 05:15AM

39
#1434 - Sushant / @sushftw

12/29/2010 at 06:15AM

39
#1435 - Logan Ladd / @LoganLadd3

01/27/2020 at 05:13AM

40
#1436 - Austin / @Austin57093958

01/22/2020 at 01:24AM

40
#1437 - Connor Van Meter / @connorvm

01/31/2020 at 03:24AM

47
#1438 - Colton Weeding / @Doc_Glen_Townie

01/30/2020 at 09:30PM

48
#1439 - Ryan Pallman / @RyanPallman

01/30/2020 at 10:11PM

49
#1440 - Jason P Bengtson / @bengtson_p

01/30/2020 at 10:21PM