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):
16
#1021 - z0c / @zerocabal

06/07/2018 at 09:14AM

16
#1022 - tapio / @gncnaxb

07/19/2018 at 01:57PM

16
#1023 - Chirag Joshi / @thechijos

08/14/2018 at 07:08AM

16
#1024 - Brent Woo / @BrentPWoo

10/02/2018 at 03:24PM

16
#1025 - editor3D / @editor3D

11/13/2018 at 12:20PM

16
#1026 - diwa / @Di_nate_

11/23/2018 at 06:47AM

16
#1027 - Shunichi Kanade / @shunkana

12/02/2018 at 09:43AM

16
#1028 - Inge Becht / @IngeBecht

01/08/2019 at 09:07PM

16
#1029 - Zach Miller / @barizachsy

02/27/2019 at 04:00AM

16
#1030 - Noel Evans / @noelevans

07/12/2019 at 12:22PM

16
#1031 - mrrdl / @mrrdl5

07/19/2019 at 09:15PM

17
#1032 - Christopher Suter / @cgs1019

12/29/2010 at 02:30AM

17
#1033 - senokay / @senokay

12/29/2010 at 06:32AM

17
#1034 - Perry Zheng / @PerryZheng

12/29/2010 at 07:16AM

17
#1035 - omelo / @omelo

12/29/2010 at 08:16AM

17
#1036 - Bernerd Schaefer / @bjschaefer

12/29/2010 at 09:33AM

17
#1037 - Jan / @janhxie

12/29/2010 at 11:02AM

17
#1038 - Paul Tarjan / @ptarjan

12/29/2010 at 11:20AM

17
#1039 - Eduardo Sampaio / @esampaio

12/29/2010 at 12:53PM

17
#1040 - Baron Von Ernesto / @excepttheweasel

12/29/2010 at 01:42PM

17
#1041 - Alexey Komissarouk / @alexeymk

12/29/2010 at 01:43PM

17
#1042 - Alex B. / @SIGKILL

12/29/2010 at 01:58PM

17
#1043 - Linus G Thiel / @yesbabyyes

12/29/2010 at 02:03PM

17
#1044 - Aleksander Balicki / @alekbalicki

12/29/2010 at 02:23PM

17
#1045 - Bartek Ciszkowski / @bartekci

12/29/2010 at 02:24PM

17
#1046 - Justin Kinney / @jakinne

12/29/2010 at 02:43PM

17
#1047 - Tommy Stanton / @tommystanton

12/29/2010 at 05:11PM

17
#1048 - andrew / @thebaldwin

12/30/2010 at 05:16AM

17
#1049 - jonbell17 / @jonbell17

12/30/2010 at 07:54PM

17
#1050 - Корнев Руслан / @woto7

01/03/2011 at 09:01PM