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

1332 active golfers, 4096 entries

Leaderboard (lowest score wins):
18
#1141 - A Fleck / @andfleck

10/11/2014 at 02:44PM

18
#1142 - Jake Worth / @jwworth

11/05/2014 at 03:47PM

18
#1143 - Virassamy Yohan / @Yoh_Ahn

12/15/2014 at 04:44PM

18
#1144 - Arno ℇrpenbeck / @javacgn

01/19/2015 at 08:56AM

18
#1145 - Linda Liu / @_lindaliu_

01/29/2015 at 04:57AM

18
#1146 - Netznarkose / @netznarkose

02/12/2015 at 05:50PM

18
#1147 - Peter Flockhart / @FreshPeter_

02/26/2015 at 05:29PM

18
#1148 - Formally Dallin / @FormallyDallin

03/24/2015 at 09:51PM

18
#1149 - ಸುಬ್ರಹ್ಮಣ್ಯ ಜೋಶಿ / @subbucoding

03/29/2015 at 07:23PM

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

05/22/2015 at 10:19PM

18
#1151 - Joshie Simmons / @JoshieSimmons

06/27/2015 at 06:57PM

18
#1152 - Mika .B / @Michael_Ben_Ali

09/11/2015 at 01:19PM

18
#1153 - Gerald Tilma / @GeraldTilma

10/18/2015 at 04:24PM

18
#1154 - warren crowell / @warrenmcrowell

01/30/2016 at 01:40AM

18
#1155 - Etienne Tremel / @etiennetremel

02/06/2016 at 02:03PM

18
#1156 - エクシル / @sicoh395

04/07/2016 at 02:29PM

18
#1157 - Max Del Giudice / @max_forest

04/18/2016 at 03:47AM

18
#1158 - Hank Chinaski / @uktechman

04/26/2016 at 05:03PM

18
#1159 - Feras / @faldah

05/01/2016 at 06:16PM

18
#1160 - Lenon Marcel / @lenonm

06/10/2016 at 05:43PM

18
#1161 - Kir Shatrov / @kirshatrov

06/19/2016 at 10:54PM

18
#1162 - Patrick J McDonough / @snake_VsCamel

09/10/2016 at 06:28PM

18
#1163 - M Lang / @morey_lang

03/09/2017 at 05:56AM

18
#1164 - Alexander Gryson / @agryson

05/01/2017 at 03:34PM

18
#1165 - Geoff / @RealGeoffErwin

10/09/2017 at 06:53PM

18
#1166 - 최종원 / @lastone9182

07/23/2018 at 12:35AM

18
#1167 - ハヤシ / @0__098

07/25/2018 at 02:01PM

18
#1168 - Juliette but spooky / @namebrandloser

10/26/2018 at 11:42PM

18
#1169 - Luis Rodriguez / @luisthecoder

11/14/2018 at 09:16PM

18
#1170 - Random / @Random29985999

11/30/2018 at 11:08PM