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 336 remaining solutions by signing in and submitting your own entry
#337 dixrow / @dixrow1 - Score: 112 - 10/22/19 @ 10:16
a<CR>2<CR>3<CR>4<CR>5<CR>6<CR>7<CR>8<CR>9<Esc>vggyGpi<CR><Esc>i1<Esc>j.j.j.j.j.j.j.j.<Esc>kkkkkkkkkkjjO10<Esc>jjjjjjjjjjjjjo<Esc>pi20<CR>2<BS><Esc>i2<Esc>j.j.j.j.j<Esc>dddddddd<Esc>:wq<CR>

0 comments


Created by: @rodmar_

337 active golfers, 493 entries

Leaderboard (lowest score wins):
26
#331 - Simon C / @happynoff

12/30/2010 at 09:37PM

26
#332 - Jonas Ng / @jnshey

05/20/2015 at 09:17AM

27
#333 - Marian Schubert / @MarianSchubert

12/30/2010 at 07:31PM

27
#334 - Joel Taylor / @joelteon_

01/01/2011 at 04:37AM

27
#335 - Todd Zimmerman / @zimmermant_uw

02/03/2019 at 03:44PM

71
#336 - blizzow / @blizzow

08/15/2016 at 10:08PM

112
#337 - dixrow / @dixrow1

10/22/2019 at 10:16AM