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 5c4d042acfafb4000c9f06c2

One to Ten

Generate the sequence of numbers from 1 to 10, one number per line. Inspired by this Reddit thread: https://redd.it/ak4it2

Start file

End file
1
2
3
4
5
6
7
8
9
10

View Diff

1c1,10
< 
---
> 1
> 2
> 3
> 4
> 5
> 6
> 7
> 8
> 9
> 10

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 292 remaining solutions by signing in and submitting your own entry
#293 Alexandre Gomes / @alexgomesdev - Score: 67 - 02/12/19 @ 12:50
:put(<BS> range=(1,10)<Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left>0<CR>:0put = <BS>range(1,10)<CR><Esc>jdd<Esc>:wq<CR>

0 comments


Created by: @tpenguinltg

293 active golfers, 849 entries

Leaderboard (lowest score wins):
14
#181 - mnx / @mnxx

02/28/2019 at 09:00PM

14
#182 - andrwyoung / @andrwyoung1

03/01/2019 at 06:44PM

14
#183 - ahm4711 / @ahm4711

03/01/2019 at 10:23PM

14
#184 - vince / @vincentvangott

03/02/2019 at 09:14PM

14
#185 - scottarver / @scottarver

03/03/2019 at 03:41AM

14
#186 - Sébastien Lavoie / @sgdlavoie

03/03/2019 at 05:21AM

14
#187 - Michal Sylwester / @msylw

03/04/2019 at 01:36PM

14
#188 - Saphire Lattice / @SaphireLattice

03/06/2019 at 05:02AM

14
#189 - Groovy / @groovy9

03/06/2019 at 09:28PM

14
#190 - Alessio / @aleb1an

03/09/2019 at 09:26PM

14
#191 - 李超 / @lichaorodxx

03/11/2019 at 06:13AM

14
#192 - Dmitry Romanovskiy / @WhereIsMyHause

03/11/2019 at 08:17AM

14
#193 - Isaak Meier / @IsaakMeier

03/12/2019 at 04:02PM

14
#194 - chenqiqi / @chenqiqi13

03/13/2019 at 02:34AM

14
#195 - ui / @ui61065627

03/13/2019 at 02:18PM

14
#196 - enji / @enji_ja

03/16/2019 at 12:15PM

14
#197 - ktbffh / @ktbffh73607665

03/20/2019 at 11:48AM

14
#198 - Gabriel / @cimourdain

03/20/2019 at 02:19PM

14
#199 - Duke Du / @DukeDu2

03/22/2019 at 03:51AM

14
#200 - 黒澤亮二 / @rjkuro

03/27/2019 at 01:05PM

14
#201 - Mark Stillwell / @marklee77

03/31/2019 at 11:17PM

14
#202 - Scott / @chil2

04/02/2019 at 02:30AM

14
#203 - wanghbxxxx / @wanghbxxxx

04/02/2019 at 02:32AM

14
#204 - GS / @GSijmens

04/05/2019 at 11:08PM

14
#205 - Michał Łowicki / @mlowicki

04/12/2019 at 01:11PM

14
#206 - Laurent Atlan / @laurentatlan1

04/14/2019 at 07:12PM

14
#207 - Norbert / @mullno

04/16/2019 at 04:28PM

14
#208 - 이종혁 / @BluePaisa

04/17/2019 at 09:03AM

14
#209 - Pratik / @prathik_t

04/18/2019 at 07:59AM

14
#210 - Fredrik Bjerkås / @fbjerkas

04/22/2019 at 12:44AM