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

372 active golfers, 1099 entries

Leaderboard (lowest score wins):
14
#241 - Dmitry Romanovskiy / @WhereIsMyHause

03/11/2019 at 08:17AM

14
#242 - Isaak Meier / @IsaakMeier

03/12/2019 at 04:02PM

14
#243 - chenqiqi / @chenqiqi13

03/13/2019 at 02:34AM

14
#244 - ui / @ui61065627

03/13/2019 at 02:18PM

14
#245 - enji / @enji_ja

03/16/2019 at 12:15PM

14
#246 - ktbffh / @ktbffh73607665

03/20/2019 at 11:48AM

14
#247 - Gabriel / @cimourdain

03/20/2019 at 02:19PM

14
#248 - Duke Du / @DukeDu2

03/22/2019 at 03:51AM

14
#249 - 黒澤亮二 / @rjkuro

03/27/2019 at 01:05PM

14
#250 - Mark Stillwell / @marklee77

03/31/2019 at 11:17PM

14
#251 - Scott / @chil2

04/02/2019 at 02:30AM

14
#252 - wanghbxxxx / @wanghbxxxx

04/02/2019 at 02:32AM

14
#253 - GS / @GSijmens

04/05/2019 at 11:08PM

14
#254 - Michał Łowicki / @mlowicki

04/12/2019 at 01:11PM

14
#255 - Laurent Atlan / @laurentatlan1

04/14/2019 at 07:12PM

14
#256 - Norbert / @mullno

04/16/2019 at 04:28PM

14
#257 - 이종혁 / @BluePaisa

04/17/2019 at 09:03AM

14
#258 - Pratik / @prathik_t

04/18/2019 at 07:59AM

14
#259 - Fredrik Bjerkås / @fbjerkas

04/22/2019 at 12:44AM

14
#260 - Izaak van Dongen / @goedel_gang

04/27/2019 at 11:40PM

14
#261 - Daniel Hakimian / @danrafhak

05/15/2019 at 04:32AM

14
#262 - Καράτε Μόνο / @karate_mono

05/15/2019 at 12:27PM

14
#263 - Arno / @arnoxmp

05/16/2019 at 10:23AM

14
#264 - Edan Sneh / @edan_sneh

06/04/2019 at 07:45AM

14
#265 - mark / @feltnermj

06/07/2019 at 06:16PM

14
#266 - garry quested / @GQuested

07/08/2019 at 10:57AM

14
#267 - Crystal L / @Cartsly

07/13/2019 at 09:09PM

14
#268 - Matt Vaughn / @mattttvaughn

07/29/2019 at 01:29AM

14
#269 - ぽんぽこ / @ponpoko2342

08/01/2019 at 12:13PM

14
#270 - Ivo Blöchliger / @aigledesalpes

08/02/2019 at 06:22PM