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

414 active golfers, 1278 entries

Leaderboard (lowest score wins):
12
#61 - zh0ng / @zh00ng

03/06/2019 at 08:52AM

12
#62 - Alexander Popov / @Alexand01782341

03/06/2019 at 03:44PM

12
#63 - Oddwel / @Oddwel

03/07/2019 at 12:33PM

12
#64 - Robert Orr / @orrrobert

03/08/2019 at 07:21PM

12
#65 - No Not / @NoNot44894988

03/09/2019 at 12:32PM

12
#66 - zenwalker / @zenwalker93

03/09/2019 at 02:04PM

12
#67 - k24w24 / @k24w24

03/18/2019 at 12:19PM

12
#68 - James Perry Hartman / @JauntyJPH

03/18/2019 at 06:27PM

12
#69 - Parsa Amini / @ParsaAmini

03/19/2019 at 05:36AM

12
#70 - 拉书单 / @NaapN2

03/19/2019 at 11:10AM

12
#71 - omrisarig / @omrisarig

03/19/2019 at 06:13PM

12
#72 - πŸ…·πŸ…°πŸ†πŸ†πŸ†ˆ / @HarryAAbrahams1

03/20/2019 at 06:02PM

12
#73 - Raul / @Raul50174499

03/22/2019 at 03:39PM

12
#74 - Unfair / @ItIsUnfair

03/24/2019 at 06:59PM

12
#75 - π•œπ•¦π•‘π•ͺ𝕔𝕙 / @skupych

03/27/2019 at 02:36PM

12
#76 - David A. Lyon / @dauglyon

03/30/2019 at 12:28AM

12
#77 - Maximilian F. / @TheMaex

03/30/2019 at 02:00AM

12
#78 - Matthew Rossman / @chimpman252

03/30/2019 at 02:36AM

12
#79 - Skywalker 666 / @MemeMasterXXI

03/31/2019 at 08:40PM

12
#80 - Nicolas Daval / @ndaval

04/07/2019 at 05:13PM

12
#81 - james_bunch / @james_bunch

04/08/2019 at 07:22PM

12
#82 - Roger Stoltz / @rogsto1

04/08/2019 at 08:06PM

12
#83 - Loنtre / @OtterPy

04/09/2019 at 10:29AM

12
#84 - royaso / @royaso

04/12/2019 at 06:38AM

12
#85 - Piotrek Olchawa / @BugsKillPeople

04/12/2019 at 07:23PM

12
#86 - alekfed / @alek_fed

04/14/2019 at 12:17PM

12
#87 - synic@ $ :(){ :|:& };: / @synic_m

04/16/2019 at 09:14AM

12
#88 - John / @John40423001

04/16/2019 at 11:47AM

12
#89 - Rand Omperson / @197258444

04/17/2019 at 06:18PM

12
#90 - Jaan Toots / @JaanToots

04/18/2019 at 02:52PM