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 51ed21c65b7a9c0002000012

Counting in binary

"a" represents 0; "A" represents 1. Start from zero and count to 15.

Start file
aaaa
End file
aaaa
aaaA
aaAa
aaAA
aAaa
aAaA
aAAa
aAAA
Aaaa
AaaA
AaAa
AaAA
AAaa
AAaA
AAAa
AAAA

View Diff

1a2,16
> aaaA
> aaAa
> aaAA
> aAaa
> aAaA
> aAAa
> aAAA
> Aaaa
> AaaA
> AaAa
> AaAA
> AAaa
> AAaA
> AAAa
> AAAA

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 116 remaining solutions by signing in and submitting your own entry
#117 jmpak / @jmpak - Score: 115 - 08/08/13 @ 11:27
Y7p$rA<Left><Down><C-V><Down>rA<Left><Down><C-R><C-V><Down><Down><Esc><Down><Up><Up><C-V><Down><Down><Down>rA<Down><Down><Right><C-V><Down>rA<Down><Right>rA<Up><Up>rA<Up><Up>rA<Up><Up><Up>V<Down><Down><Down><Down><Down><Down><Down>:g<BS><BS><BS><BS><BS><BS>g/^/m0<CR><Down><Down><Down><Down><Down><Down><Down><Down>V<Up><Up><Up><Up><Up><Up><Up><Up><Up><Up>yu:$<CR>p<Up><Down>V<Down><Down><Down><Down><Down><Down><Down>g~<Esc>:wq<CR>

0 comments


Created by: @udioica

117 active golfers, 526 entries

Leaderboard (lowest score wins):
16
#1 - Kerson Hsiao / @KersonHsiao

02/12/2014 at 12:56AM

16
#2 - MP / @Enemy_m

03/05/2014 at 10:19PM

16
#3 - Urtica dioica / @udioica

03/07/2014 at 03:20AM

16
#4 - John Braxler / @braxler

03/28/2014 at 07:20PM

16
#5 - alexscott / @4l3xsc0tt

04/30/2014 at 05:01PM

16
#6 - Petro Π’rouq / @zulolosi

08/07/2014 at 08:01PM

16
#7 - Justin Knag / @justinknag

08/30/2014 at 01:39AM

16
#8 - Walker Boh / @walker_boh

10/19/2015 at 01:25PM

16
#9 - Turkey Man / @lvturkeyman

11/30/2018 at 08:57AM

16
#10 - Timur Celik / @clktmr

12/22/2018 at 03:09AM

16
#11 - πšƒπš’πšπš˜πšžπšŠπš— πšƒπšŽπš’πšœπšœπš’πšŽπš› / @TitouanT_

03/10/2019 at 02:52AM

16
#12 - Ben M / @Sweet_Scientist

06/07/2019 at 04:34AM

16
#13 - MiΕ‚osz Łakomy / @foobar01123

02/27/2020 at 09:23AM

16
#14 - Peppa Pig / @PeppaPigSg

06/01/2024 at 01:34PM

16
#15 - nickGPT / @nickandbro

08/28/2024 at 06:20PM

17
#16 - Joshua Appelman / @JoshuaAppelman

12/21/2013 at 10:05PM

17
#17 - Thomas GUILLORY / @thomasguillory

03/06/2014 at 09:32PM

17
#18 - Nabi Studios / @Toribash

03/29/2014 at 06:27AM

17
#19 - pftb12345 / @pftb12345

04/11/2015 at 03:16PM

17
#20 - Dimitar Dimitrov / @kurkale6ka

04/20/2016 at 12:46PM

17
#21 - DHM / @DHM29978992

05/03/2018 at 03:35AM

17
#22 - Mihai / @mihaicristiant

03/06/2019 at 01:38PM

17
#23 - wpr__ / @wpr____

03/11/2022 at 07:57AM

17
#24 - z00master / @z00master

08/27/2022 at 02:19AM

17
#25 - Remus Dalrymple / @bornintheflames

12/27/2023 at 09:55PM

18
#26 - Marchand Paul-Valère / @pvmarch

03/07/2014 at 12:54PM

18
#27 - Jean George / @JeanGeo20504212

04/08/2022 at 08:06AM

19
#28 - Barry Nichols / @Barry_Nichols

08/26/2013 at 05:51AM

20
#29 - Ingo / @ist3fani

07/28/2013 at 09:39AM

20
#30 - James T. Huggett / @Jmeshka

09/27/2013 at 12:15PM