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

1356 active golfers, 4170 entries

Leaderboard (lowest score wins):
18
#1171 - ಸುಬ್ರಹ್ಮಣ್ಯ ಜೋಶಿ / @subbucoding

03/29/2015 at 07:23PM

18
#1172 - Котов Роман / @Oxaide16

05/22/2015 at 10:19PM

18
#1173 - Joshie Simmons / @JoshieSimmons

06/27/2015 at 06:57PM

18
#1174 - Mika .B / @Michael_Ben_Ali

09/11/2015 at 01:19PM

18
#1175 - Gerald Tilma / @GeraldTilma

10/18/2015 at 04:24PM

18
#1176 - warren crowell / @warrenmcrowell

01/30/2016 at 01:40AM

18
#1177 - Etienne Tremel / @etiennetremel

02/06/2016 at 02:03PM

18
#1178 - エクシル / @sicoh395

04/07/2016 at 02:29PM

18
#1179 - Max Del Giudice / @max_forest

04/18/2016 at 03:47AM

18
#1180 - Hank Chinaski / @uktechman

04/26/2016 at 05:03PM

18
#1181 - Feras / @faldah

05/01/2016 at 06:16PM

18
#1182 - Lenon Marcel / @lenonm

06/10/2016 at 05:43PM

18
#1183 - Kir Shatrov / @kirshatrov

06/19/2016 at 10:54PM

18
#1184 - Patrick J McDonough / @snake_VsCamel

09/10/2016 at 06:28PM

18
#1185 - M Lang / @morey_lang

03/09/2017 at 05:56AM

18
#1186 - Alexander Gryson / @agryson

05/01/2017 at 03:34PM

18
#1187 - Geoff / @RealGeoffErwin

10/09/2017 at 06:53PM

18
#1188 - 최종원 / @lastone9182

07/23/2018 at 12:35AM

18
#1189 - ハヤシ / @0__098

07/25/2018 at 02:01PM

18
#1190 - Juliette but spooky / @namebrandloser

10/26/2018 at 11:42PM

18
#1191 - Luis Rodriguez / @luisthecoder

11/14/2018 at 09:16PM

18
#1192 - Random / @Random29985999

11/30/2018 at 11:08PM

18
#1193 - Timothy Bryan / @tim_bryan

02/22/2019 at 11:50PM

18
#1194 - Deepstack / @deepstackux

03/15/2019 at 04:20PM

18
#1195 - IHateTweeting999 / @ITweeting999

05/05/2019 at 08:33PM

18
#1196 - Vim Golfer / @VimGolfer6

07/02/2019 at 12:34PM

18
#1197 - Marcus Loo / @MarcusLoo1

07/03/2019 at 03:20PM

18
#1198 - 浚宇 / @Junyu_Wang_cn

08/18/2019 at 06:46AM

19
#1199 - Anthony Cook / @anthony_m_cook

12/29/2010 at 01:29AM

19
#1200 - lionel young / @lionelyoung

12/29/2010 at 01:37AM