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

1467 active golfers, 4434 entries

Leaderboard (lowest score wins):
12
#601 - Colby Brown / @colbyabrown

08/05/2019 at 03:46PM

12
#602 - sooqua / @sooqua

08/09/2019 at 03:34AM

12
#603 - Noisome Possum / @NoisomePossum

08/09/2019 at 07:55AM

12
#604 - Himavanth Reddy / @Himavanth1909

08/12/2019 at 06:48AM

12
#605 - Chris Maher / @chrismaherthe

08/13/2019 at 05:18PM

12
#606 - Ron Holt / @ron_holt

08/14/2019 at 07:12PM

12
#607 - Mr_Djez / @DjezMr

08/17/2019 at 07:54PM

12
#608 - theBecwar / @thebecwar

08/18/2019 at 07:44PM

12
#609 - Simon Wilkinson / @simondwilkinson

08/23/2019 at 10:53PM

12
#610 - Kenny Low / @kennylow

09/02/2019 at 01:54PM

12
#611 - Vim Player / @PlayerVim

09/14/2019 at 01:37PM

12
#612 - Cassandra / @kascein

09/18/2019 at 10:12PM

12
#613 - Brandon Harrison / @llAboutB

09/24/2019 at 10:11PM

12
#614 - Rui Xue / @ruirayxue

10/01/2019 at 02:31PM

12
#615 - Viktor Styrud / @ViktorStyrud

10/09/2019 at 08:22AM

12
#616 - vimgolfer / @vimgolfer7

10/22/2019 at 01:40AM

12
#617 - Mario Olofo / @mario_olofo

10/22/2019 at 03:51AM

12
#618 - Harrison / @ardentcow

10/31/2019 at 06:40AM

12
#619 - Lory / @Lory46845742

11/08/2019 at 01:56PM

12
#620 - Henry / @henry_codes

11/17/2019 at 09:20PM

12
#621 - pysnow530 / @pysnow530

11/25/2019 at 02:49PM

12
#622 - oldandslow / @oldandslow5

11/27/2019 at 10:18AM

12
#623 - fewfold / @fewfold

11/29/2019 at 05:41PM

12
#624 - skamgolf / @skamgolf

12/18/2019 at 03:30AM

12
#625 - vicver09 / @vicver091

12/18/2019 at 05:53PM

12
#626 - BESSENG A IREH Guy / @guybesseng

12/18/2019 at 08:38PM

12
#627 - James Casey / @hanavi

12/21/2019 at 09:31PM

12
#628 - hokonch / @hokonch

12/23/2019 at 01:50PM

12
#629 - Delon / @delonleonard

12/31/2019 at 10:38AM

12
#630 - Jan Balangue / @jbalang

01/05/2020 at 07:27PM