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 1367 remaining solutions by signing in and submitting your own entry
#1368 Richard Kaufman / @sparragus - Score: 96 - 12/29/10 @ 14:56
:/<BS>%/<Left><Left><Right>s<Right>'aa'<Left>a<Right>/<Left><Left>x<Left><Right><Right><BS><BS><Left><Left><Left><BS><Right><Right><Right><Right><Right>xaaax/g<CR>:wq<CR>

0 comments


Created by: @wolever

1368 active golfers, 4206 entries

Leaderboard (lowest score wins):
16
#1021 - Eric Kever / @codeoverlode

09/29/2014 at 10:52PM

16
#1022 - SilentFl / @Silent_Fl

01/27/2015 at 09:12AM

16
#1023 - d1uckym d1uckym / @d1uckym

02/16/2015 at 06:46AM

16
#1024 - TheProgrammer971 / @tp971

03/14/2015 at 11:26PM

16
#1025 - Jeffrey Gu / @Jeffrey_Gu

03/20/2015 at 04:34PM

16
#1026 - shugen / @shugeno

03/23/2015 at 08:40PM

16
#1027 - William Ott / @oddalot

04/08/2015 at 01:10PM

16
#1028 - Andrew Larson / @applarson

04/15/2015 at 06:11PM

16
#1029 - Dylan Hart / @code_problem

04/21/2015 at 07:06AM

16
#1030 - Gracjan Grala / @gracjangrala

04/24/2015 at 11:11PM

16
#1031 - chvzvhn / @chvzvhn

04/27/2015 at 04:50AM

16
#1032 - Henrik Lindgren / @HeLi8one

05/17/2015 at 07:59PM

16
#1033 - Sahana Rajasekar / @sahanarajasekar

06/11/2015 at 04:20AM

16
#1034 - T A / @SirAviles

09/09/2015 at 08:33PM

16
#1035 - aisapatino / @aisapatino

09/27/2015 at 07:05AM

16
#1036 - chris liang / @serhc

10/09/2015 at 09:51PM

16
#1037 - Uri Nativ / @unativ

02/21/2016 at 03:42PM

16
#1038 - Henry Dang / @henrydangchs

05/15/2016 at 03:15AM

16
#1039 - Pablo Cobelli / @pablocobelli

06/21/2016 at 03:07AM

16
#1040 - Ryan van Rensburg / @rdvr001

07/21/2016 at 12:10PM

16
#1041 - Daniel Bellenger / @DanielBellenger

09/30/2016 at 07:13PM

16
#1042 - Guy / @Guy56431415

12/11/2016 at 10:24PM

16
#1043 - Igor Doroshenko / @Vernittem

01/03/2017 at 12:12PM

16
#1044 - Hans Yelek / @hans_yelek

01/11/2017 at 06:30AM

16
#1045 - GVest Two / @GvestTwo

03/23/2017 at 04:12PM

16
#1046 - Meriadec Pillet / @loomisBroom

08/23/2017 at 12:31PM

16
#1047 - Ty Wince / @tylerwince

09/27/2017 at 07:02PM

16
#1048 - not a lot / @of_what1

11/15/2017 at 06:15AM

16
#1049 - Sridhar Domakonda / @sridhar_domak

12/07/2017 at 01:01PM

16
#1050 - Austin Ware / @AustinWare17

03/20/2018 at 04:33AM