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 1630 remaining solutions by signing in and submitting your own entry
#1631 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

1631 active golfers, 5007 entries

Leaderboard (lowest score wins):
18
#1381 - Etienne Tremel / @etiennetremel

02/06/2016 at 02:03PM

18
#1382 - エクシル / @sicoh395

04/07/2016 at 02:29PM

18
#1383 - Max Del Giudice / @max_forest

04/18/2016 at 03:47AM

18
#1384 - Hank Chinaski / @uktechman

04/26/2016 at 05:03PM

18
#1385 - Feras / @faldah

05/01/2016 at 06:16PM

18
#1386 - Lenon Marcel / @lenonm

06/10/2016 at 05:43PM

18
#1387 - Kir Shatrov / @kirshatrov

06/19/2016 at 10:54PM

18
#1388 - Patrick J McDonough / @snake_VsCamel

09/10/2016 at 06:28PM

18
#1389 - M Lang / @morey_lang

03/09/2017 at 05:56AM

18
#1390 - Alexander Gryson / @agryson

05/01/2017 at 03:34PM

18
#1391 - Geoff / @RealGeoffErwin

10/09/2017 at 06:53PM

18
#1392 - 최종원 / @lastone9182

07/23/2018 at 12:35AM

18
#1393 - ハヤシ / @0__098

07/25/2018 at 02:01PM

18
#1394 - Jules / @namebrandloser

10/26/2018 at 11:42PM

18
#1395 - Luis Rodriguez / @luisthecoder

11/14/2018 at 09:16PM

18
#1396 - Random / @Random29985999

11/30/2018 at 11:08PM

18
#1397 - Timothy Bryan / @tim_bryan

02/22/2019 at 11:50PM

18
#1398 - Deepstack / @deepstackux

03/15/2019 at 04:20PM

18
#1399 - IHateTweeting999 / @ITweeting999

05/05/2019 at 08:33PM

18
#1400 - Vim Golfer / @VimGolfer6

07/02/2019 at 12:34PM

18
#1401 - Marcus Loo / @MarcusLoo1

07/03/2019 at 03:20PM

18
#1402 - 浚宇 / @Junyu_Wang_cn

08/18/2019 at 06:46AM

18
#1403 - T Gentry / @TGentry36814419

01/22/2020 at 05:31PM

18
#1404 - Kade Pitsch / @kade98528

01/23/2020 at 01:51AM

18
#1405 - Jonah Hlastala / @JonahHlastala

01/23/2020 at 07:55PM

18
#1406 - Matthew Wintersteen / @mattt_w4

01/24/2020 at 02:17AM

18
#1407 - ram / @rambory

01/25/2020 at 09:46PM

18
#1408 - Goldfish™ / @ImAGoldenFish

01/27/2020 at 10:39PM

18
#1409 - Sheep Island Productions / @island_sheep

01/30/2020 at 04:10AM

18
#1410 - Nicus / @NicusTM

01/30/2020 at 07:06PM