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

1287 active golfers, 3963 entries

Leaderboard (lowest score wins):
25
#1261 - timotheo / @timotheo

12/29/2010 at 05:41AM

25
#1262 - scott / @SetecAstronomy

12/29/2010 at 10:55AM

25
#1263 - ; / @dandwor

02/05/2014 at 01:44PM

25
#1264 - Herr Oppermann / @HerrOppermann

06/15/2014 at 02:10PM

26
#1265 - Nonni / @megamjau

12/29/2010 at 02:47AM

26
#1266 - Michael Lustfield / @Profarius

12/29/2010 at 06:17AM

26
#1267 - Tsatsi Mahase / @tsatsi_mahase

12/15/2014 at 05:59PM

27
#1268 - mracus / @macrsu

12/29/2010 at 07:29AM

27
#1269 - Ajith Antony / @ajithantony

12/29/2010 at 12:57PM

27
#1270 - Benjamin Small / @ph1g

12/29/2010 at 04:07PM

27
#1271 - Zach Bush / @zmbush

02/03/2014 at 07:58PM

27
#1272 - Alexander Bandukwala / @abanduk

06/16/2014 at 06:53PM

27
#1273 - E / @The_Ejaay

04/02/2019 at 02:01PM

28
#1274 - John / @fuzzyfuzz

12/29/2010 at 03:23AM

28
#1275 - Stefan Wintermeyer / @wintermeyer

12/29/2010 at 12:18PM

28
#1276 - Tomasz Muszynski / @herkii

12/31/2010 at 12:39PM

29
#1277 - papersmith / @papersmith

12/29/2010 at 02:43AM

29
#1278 - Nacho Barrientos / @nachobarrientos

12/29/2010 at 12:19PM

31
#1279 - Josh / @karlw00t

12/29/2010 at 01:23AM

31
#1280 - Josh Davey / @joshuadavey

12/29/2010 at 04:21AM

32
#1281 - Chris Faulkner / @bookdarts

12/29/2010 at 12:39PM

34
#1282 - Timothy Hahn / @timyhahn

04/20/2012 at 03:31AM

36
#1283 - DJ Adams / @qmacro

12/29/2010 at 04:30PM

38
#1284 - Titan Tang / @titantang

12/29/2010 at 05:15AM

39
#1285 - Sushant / @sushftw

12/29/2010 at 06:15AM

66
#1286 - Attila / @attilaforgacs

01/29/2014 at 04:06AM

96
#1287 - Richard Kaufman / @sparragus

12/29/2010 at 02:56PM