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 4d1cc35a35b40650b800043a

Increment, increment, increment....

Vim likes macros

Start file
1
End file
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

View Diff

1a2,25
> 2
> 3
> 4
> 5
> 6
> 7
> 8
> 9
> 10
> 11
> 12
> 13
> 14
> 15
> 16
> 17
> 18
> 19
> 20
> 21
> 22
> 23
> 24
> 25

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 405 remaining solutions by signing in and submitting your own entry
#406 sam (taylor's version) / @samwarrren - Score: 191 - 08/04/22 @ 17:43
<Right><Left>YYYYP+1<CR><BS><Down><Right><Right>ddqqyyp<S-Right><C-A>q@q@q@q@q@q@coun<BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS>1<CR><BS><Esc><Esc><Esc>@q@q@q<Right><Esc><BS><BS><BS><C-Right><C-Right><C-Right><Right><Right>ddddddyyp<C-A>yyp<C-A>yyp<C-A>yyp<C-A>yyp<C-A>yyp<C-A>yyp<C-A>yyp<C-A>yyp<C-A>yyp<C-A>yyp<C-A>yyp<C-A>yyp<C-A>yyp<C-A>yyp<C-A>yyp<C-A>yyp<C-A>yyp<C-A>yyp<C-A>yyp<C-A>yyp<C-A>yyp<C-A>yyp<C-A>yyp<C-A><Esc><Esc>:w<CR>:wq<CR>

0 comments


Created by: @rodmar_

406 active golfers, 684 entries

Leaderboard (lowest score wins):
10
#1 - Urtica dioica / @udioica

06/25/2015 at 06:06PM

10
#2 - Elizabeth / @sprinkles418

07/17/2015 at 02:05AM

10
#3 - Hermit McDermot / @hermit_mcdermot

11/13/2015 at 01:06PM

10
#4 - Mathias / @wizhie

01/15/2016 at 08:39PM

10
#5 - Jon Krause / @jkrause314

01/18/2016 at 08:49PM

10
#6 - Ralf Haffa / @fatslo

02/27/2016 at 10:35PM

10
#7 - Tom Harada / @p10q

04/25/2016 at 05:44AM

10
#8 - Ikypiky / @nerdbeereis

06/15/2016 at 09:14PM

10
#9 - Peter Brynza / @v3_1

08/28/2016 at 07:34PM

10
#10 - Bowen Masco / @codingfoo

09/16/2016 at 08:15PM

10
#11 - 子皓翁 / @geniusgordon

10/25/2016 at 09:06AM

10
#12 - Jim Bob / @babyclubber

02/28/2017 at 12:16AM

10
#13 - Anthony George / @Xanuthatusu

06/19/2017 at 07:23PM

10
#14 - Turkey Man / @lvturkeyman

11/28/2017 at 06:04AM

10
#15 - Thomas Royer / @Cydonia7

03/11/2018 at 01:33AM

10
#16 - Evgeny`s Kindle / @EvgenyKindle

04/24/2018 at 09:29AM

10
#17 - Rui Su / @RuiSuTwi

05/04/2018 at 09:34PM

10
#18 - NOT Takinashi / @TaleLore

06/24/2018 at 03:20AM

10
#19 - slicklash / @slicklash

06/28/2018 at 12:26PM

10
#20 - Micheal Wells / @michealwwells

08/10/2018 at 05:36PM

10
#21 - Epecb / @BceEpecb

09/03/2018 at 07:46PM

10
#22 - John Braxler / @braxler

09/28/2018 at 01:31PM

10
#23 - Eric Moss / @NotEricMoss

11/05/2018 at 02:18PM

10
#24 - Timur Celik / @clktmr

12/22/2018 at 12:27AM

10
#25 - Mihai / @mihaicristiant

03/18/2019 at 08:48AM

10
#26 - Leiser Fernández / @leiserfg

05/18/2019 at 06:37PM

10
#27 - Nick Yeow / @nickyeow

05/22/2019 at 01:41PM

10
#28 - deurzen / @devrzen

06/06/2019 at 01:28PM

10
#29 - Marko / @ultrox

12/27/2019 at 02:58PM

10
#30 - Johannes Riecken / @rubystallion

01/15/2020 at 06:24PM