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 182 remaining solutions by signing in and submitting your own entry
#183 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

183 active golfers, 506 entries

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

02/28/2019 at 09:00PM

14
#122 - andrwyoung / @andrwyoung1

03/01/2019 at 06:44PM

14
#123 - ahm4711 / @ahm4711

03/01/2019 at 10:23PM

14
#124 - vince / @vincentvangott

03/02/2019 at 09:14PM

14
#125 - scottarver / @scottarver

03/03/2019 at 03:41AM

14
#126 - Sébastien Lavoie / @sgdlavoie

03/03/2019 at 05:21AM

14
#127 - Michal Sylwester / @msylw

03/04/2019 at 01:36PM

14
#128 - Saphire Lattice / @SaphireLattice

03/06/2019 at 05:02AM

14
#129 - Groovy / @groovy9

03/06/2019 at 09:28PM

14
#130 - Alessio / @aleb1an

03/09/2019 at 09:26PM

14
#131 - 李超 / @lichaorodxx

03/11/2019 at 06:13AM

14
#132 - Dmitry Romanovskiy / @WhereIsMyHause

03/11/2019 at 08:17AM

14
#133 - Isaak Meier / @IsaakMeier

03/12/2019 at 04:02PM

14
#134 - chenqiqi / @chenqiqi13

03/13/2019 at 02:34AM

14
#135 - ui / @ui61065627

03/13/2019 at 02:18PM

14
#136 - enji / @enji_jp

03/16/2019 at 12:15PM

14
#137 - ktbffh / @ktbffh73607665

03/20/2019 at 11:48AM

14
#138 - Gabriel / @cimourdain

03/20/2019 at 02:19PM

14
#139 - Duke Du / @DukeDu2

03/22/2019 at 03:51AM

15
#140 - Cory Knapp / @coryknapp

01/27/2019 at 01:29AM

15
#141 - Sachet Mittal / @MittalSachet

01/27/2019 at 07:37AM

15
#142 - Miki Tebeka / @tebeka

01/27/2019 at 08:03AM

15
#143 - Rajit Singh / @rajitbsingh

01/30/2019 at 10:31AM

15
#144 - Bob_V / @Bob_V

01/30/2019 at 01:21PM

15
#145 - Colby Brown / @colbyabrown

02/11/2019 at 04:45AM

15
#146 - Wei Wen / @goweiwen

02/15/2019 at 07:23PM

15
#147 - Amado Antonini / @AmadoAntonini

03/07/2019 at 12:59PM

16
#148 - Mark Havas / @techuntangler

02/04/2019 at 12:38PM

16
#149 - Tijn Schouten / @TijnSchouten

02/06/2019 at 10:50AM

16
#150 - gsvba / @gsvba

03/05/2019 at 01:40PM