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
#151 - Lee Marlow / @lmarlow

01/01/2011 at 03:41AM

12
#152 - larsd / @larsd

01/01/2011 at 06:33AM

12
#153 - Casey W Crites / @caseycrites

01/01/2011 at 06:46AM

12
#154 - dominique pellé / @vimgolfisto

01/01/2011 at 10:15AM

12
#155 - Israel Chauca F. / @Raimondi

01/01/2011 at 11:19AM

12
#156 - derp derp / @derp__

01/01/2011 at 07:48PM

12
#157 - Pete Johns / @johnsyweb

01/02/2011 at 09:18AM

12
#158 - vTsoumenis / @kioopi

01/02/2011 at 02:45PM

12
#159 - Ben Lenarts / @benlenarts

01/02/2011 at 11:41PM

12
#160 - Foo Foo / @foofoofoo42

01/03/2011 at 07:21AM

12
#161 - Chad Waters / @cgwaters

01/03/2011 at 02:46PM

12
#162 - Larry Marburger / @lmarburger

01/03/2011 at 05:49PM

12
#163 - Clément Nodet / @clementnodet

01/03/2011 at 11:12PM

12
#164 - Aaron Bull Schaefer / @elasticdog

01/05/2011 at 01:06AM

12
#165 - Victor Vaile / @victorv4_

01/05/2011 at 07:18AM

12
#166 - Javier Arce / @javier

01/05/2011 at 08:45PM

12
#167 - Ujjwol Lamichhane / @Ujjwol

01/06/2011 at 02:12PM

12
#168 - Stephan Weller / @stephan_weller

01/06/2011 at 05:31PM

12
#169 - Francisco Dibar / @frandibar

01/08/2011 at 05:18AM

12
#170 - aimee / @sermoa

01/09/2011 at 04:50PM

12
#171 - drio / @drio

01/10/2011 at 12:32AM

12
#172 - Wonha Ryu / @beingryu

01/11/2011 at 06:55AM

12
#173 - fuck you / @jerkassholeface

01/15/2011 at 12:32AM

12
#174 - Thomas Schönwälder / @Masei1988

01/15/2011 at 09:33PM

12
#175 - Federico Galassi / @federicogalassi

01/17/2011 at 06:31PM

12
#176 - jcmvbkbc / @jcmvbkbc

01/18/2011 at 09:29PM

12
#177 - Vladimir Parfinenko / @cypok

01/19/2011 at 06:16AM

12
#178 - Andrey A. Ugolnik / @andreyugolnik

01/19/2011 at 08:23PM

12
#179 - Oleg Roshupkin / @jjjahson

01/21/2011 at 04:24AM

12
#180 - xhtmlforum / @xhtmlforum

01/25/2011 at 08:01AM