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 55007a7412685a180e000005

Not enough Ps

Different type of code

Start file
A B C D
B A X Y
B X Y D
D C B A
X D A B
B W Y D
W B D X
A B D X
D Z B Y
D Z B A
End file
A P C D
P A X Y
B X Y D
D C P A
X D A P
B W Y D
W B D X
A P D X
D Z B Y
D Z P A

View Diff

1,2c1,2
< A B C D
< B A X Y
---
> A P C D
> P A X Y
4,5c4,5
< D C B A
< X D A B
---
> D C P A
> X D A P
8c8
< A B D X
---
> A P D X
10c10
< D Z B A
---
> D Z P A

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 18 remaining solutions by signing in and submitting your own entry
#19 0x255 / 0x255 - Score: 14 - 03/11/15 @ 21:47
:g/A/s/B/P/<CR>ZZ

0 comments

#20 Gammelin Guillaume / ggammelin - Score: 14 - 03/12/15 @ 12:55
:g/A/s/B/P/<CR>ZZ

0 comments

#21 Phil Runninger / PhilRunninger - Score: 14 - 03/12/15 @ 13:31
:g/A/s/B/P/<CR>ZZ

0 comments

#22 Deepak Surti / dmsurti - Score: 15 - 03/12/15 @ 13:14
:g/A/s/B/P/g<CR>ZZ

0 comments

#23 BartJanssen / BartJanssen - Score: 19 - 03/12/15 @ 21:48
<Down><Down><Down>:g/A/s/B/P/g<BS><CR>ZZ

0 comments

Created by: zumalifeguard

23 active golfers, 38 entries

Leaderboard (lowest score wins):
13
#1 - Mariano Macchi / mmacchif

03/11/2015 at 05:45PM

13
#2 - Urtica dioica / udioica

03/11/2015 at 06:12PM

13
#3 - Kai Yuan / kentyuan

03/11/2015 at 06:16PM

13
#4 - James / Dronak

03/11/2015 at 06:41PM

13
#5 - Matthieu Crapet / mcr05

03/12/2015 at 12:48PM

13
#6 - John Braxler / braxler

03/12/2015 at 01:40PM

13
#7 - Mike McGowan / mikemcgowan75

03/12/2015 at 03:08PM

13
#8 - spriggo / spriggo

03/12/2015 at 06:43PM

13
#9 - basilest / basilest

03/13/2015 at 08:16PM

13
#10 - DrHobo / _DrHobo_

03/14/2015 at 04:12AM

13
#11 - Yann Moisan / YannMoisan

03/15/2015 at 08:54AM

13
#12 - Elizabeth / sprinkles418

04/15/2015 at 05:29PM

13
#13 - Ala' Ibrahim / alaa_ibrahim

04/25/2015 at 08:13AM

13
#14 - David Stensland / DavidStensland

06/03/2015 at 07:01AM

13
#15 - Robert Goeddel / f0rdpr3fect

11/11/2015 at 06:37PM

13
#16 - Jon Krause / jkrause314

01/19/2016 at 01:31AM

13
#17 - Kerson Hsiao / KersonHsiao

06/28/2016 at 09:14AM

13
#18 - 何晨 / hechen0_

09/22/2016 at 05:32PM

14
#19 - 0x255 / 0x255

03/11/2015 at 09:47PM

14
#20 - Gammelin Guillaume / ggammelin

03/12/2015 at 12:55PM

14
#21 - Phil Runninger / PhilRunninger

03/12/2015 at 01:31PM

15
#22 - Deepak Surti / dmsurti

03/12/2015 at 01:14PM

19
#23 - BartJanssen / BartJanssen

03/12/2015 at 09:48PM