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 406 remaining solutions by signing in and submitting your own entry
#407 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_

407 active golfers, 687 entries

Leaderboard (lowest score wins):
12
#181 - Matthieu Honel / @ocus

01/28/2011 at 08:09AM

12
#182 - vg / @vimgolfer

01/28/2011 at 12:51PM

12
#183 - Joost / @vlabakje

02/11/2011 at 10:57PM

12
#184 - dschobel / @dschobel

02/20/2011 at 12:15AM

12
#185 - Eivind Jahren / @HaskellElephant

02/21/2011 at 05:19PM

12
#186 - Pavlo Klets / @p01nt

02/25/2011 at 10:58AM

12
#187 - Jeroen / @teranex

03/01/2011 at 11:03PM

12
#188 - Paweu1kZ nbNeyIhH / @yUQlwsFpRSzxJFh

03/06/2011 at 09:52PM

12
#189 - Andrew Dorman / @andydorman

03/21/2011 at 02:28PM

12
#190 - rabidpraxis / @rabidpraxis

03/24/2011 at 02:26AM

12
#191 - Beau Dacious / @nocash

03/24/2011 at 05:41PM

12
#192 - Thom Hughes / @thom_hughes_1

03/28/2011 at 09:31AM

12
#193 - Mathias Bynens  / @mathias

04/08/2011 at 09:58AM

12
#194 - Yannis Chatzimichos / @feedward

04/13/2011 at 12:21PM

12
#195 - Derrick Camerino / @robustdj

04/20/2011 at 08:47PM

12
#196 - sorami / @boredoms

05/01/2011 at 12:11AM

12
#197 - Ilya Strukov / @i1ey

05/02/2011 at 06:30AM

12
#198 - Ian McCowan / @valrus

05/29/2011 at 09:42PM

12
#199 - Márton Juhász / @juhasz

06/04/2011 at 08:23PM

12
#200 - Bryan Kendall / @bkendall

06/06/2011 at 08:28PM

12
#201 - Rasmus P / @rasmup

06/09/2011 at 02:25AM

12
#202 - Justin Love / @wondible

06/29/2011 at 12:35PM

12
#203 - Dan Masquelier / @danmasq

07/01/2011 at 06:28AM

12
#204 - Sammasati / @sammasati0

07/17/2011 at 03:23AM

12
#205 - Jim Infield / @jinfield

07/21/2011 at 10:26PM

12
#206 - Johan Sveholm / @rymdtjuren

07/22/2011 at 12:53AM

12
#207 - Dave / @zzdave13

07/27/2011 at 05:56PM

12
#208 - Alexander Yermakov / @Mannavard

08/05/2011 at 12:29PM

12
#209 - Stanley Wang / @stanleynwang

08/25/2011 at 11:23AM

12
#210 - Jesús Espino / @jespinog

09/07/2011 at 09:53AM