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 1452 remaining solutions by signing in and submitting your own entry
#1453 Zac sliker / @Zacsliker - Score: 111 - 01/29/20 @ 16:26
i<Esc>dw<Down><Down><Down><Down>dw<Down><Down><Down><Down>dw<Down><Down><Down><Down>dw<Down><Down><Down><Down>dwi<50-53>xaaax<Esc>[201~<Up><Up><Up><Up><50-53>xaaax<Esc>[201~<Up><Up><Up><Up><50-53>xaaax<Esc>[201~<Up><Up><Up><Up><50-53>xaaax<Esc>[201~<Up><Up><Up><Up><50-53>xaaax<Esc>[201~<Esc>:wq!<CR>

0 comments


Created by: @wolever

1453 active golfers, 4391 entries

Leaderboard (lowest score wins):
19
#1261 - lionel young / @lionelyoung

12/29/2010 at 01:37AM

19
#1262 - Colin Jones / @trptcolin

12/29/2010 at 02:17AM

19
#1263 - BrandonMathis / @BrandonMathis

12/29/2010 at 02:25AM

19
#1264 - James Church / @jcchurch

12/29/2010 at 02:52AM

19
#1265 - okay zed / @okayzed

12/29/2010 at 03:40AM

19
#1266 - Ankit Shankar / @thelastnode

12/29/2010 at 06:10AM

19
#1267 - Sebastian Morr / @blinry

12/29/2010 at 09:04AM

19
#1268 - Chris Doble / @chrisdoble

12/29/2010 at 10:07AM

19
#1269 - pcapriotti / @pcapriotti

12/29/2010 at 11:43AM

19
#1270 - kuhout / @kuhout

12/29/2010 at 02:47PM

19
#1271 - Dave V. / @dave_v

12/29/2010 at 02:47PM

19
#1272 - Daniel Hahler / @blueyed

12/29/2010 at 08:26PM

19
#1273 - Adam / @arboooz

12/29/2010 at 09:33PM

19
#1274 - TchiKong / @tchikong

01/23/2011 at 11:26AM

19
#1275 - Nick Jones / @nickj89

04/10/2011 at 12:46PM

19
#1276 - Fat troll / @fat_troll

03/29/2014 at 08:39AM

19
#1277 - Charles Neill / @ccneill

05/01/2014 at 01:56AM

19
#1278 - Jacob Rosenblatt / @JKRosenblatt

06/15/2014 at 02:39PM

19
#1279 - Daniel Low / @deniallow

08/07/2014 at 10:21PM

19
#1280 - Rathrio / @Rathrio

09/02/2014 at 12:33PM

19
#1281 - a b / @c00_a

01/19/2015 at 12:13PM

19
#1282 - Nick James / @Verbitan

01/31/2015 at 02:43PM

19
#1283 - Rijnard van Tonder / @rvtond

04/27/2015 at 02:17AM

19
#1284 - Manuel Haas / @uf_manuel

07/22/2015 at 05:08PM

19
#1285 - Nathanael / @ngsilverman

05/09/2018 at 04:27AM

19
#1286 - Zach Russell / @ZacharyRRussell

02/07/2019 at 03:26PM

19
#1287 - Hans-Wilhelm / @hanswilw

06/26/2019 at 03:46PM

19
#1288 - Sinnamon / @waddupbrother

01/22/2020 at 08:30PM

19
#1289 - TriCierraTops / @CierraWallin

01/30/2020 at 06:39PM

19
#1290 - なで。 / @nadegata217

02/05/2020 at 03:00PM