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

181 active golfers, 502 entries

Leaderboard (lowest score wins):
12
#31 - James Tan / @JamesTa27025740

02/05/2019 at 12:12PM

12
#32 - Percelot / @percelot

02/05/2019 at 04:21PM

12
#33 - Shahin Mohammad Sali / @shaahiinms

02/05/2019 at 09:52PM

12
#34 - Juan Manuel Fresia / @fresiajm

02/06/2019 at 04:20AM

12
#35 - JBL / @jbl428

02/06/2019 at 12:55PM

12
#36 - Christopher Weyand / @swordman378

02/06/2019 at 05:03PM

12
#37 - Not a Number / @NaN42647716

02/07/2019 at 02:36PM

12
#38 - merphant / @merphant

02/08/2019 at 09:49AM

12
#39 - Paul Yates / @PYates77

02/08/2019 at 08:47PM

12
#40 - T A / @SirAviles

02/09/2019 at 10:49AM

12
#41 - Ng Sek Long / @NgSekLong

02/09/2019 at 02:04PM

12
#42 - Pratyush Vashisht / @prvashisht

02/10/2019 at 04:24PM

12
#43 - eduardo torres / @etdavila10

02/12/2019 at 03:27AM

12
#44 - Mateen Ulhaq / @sicariusnoctis

02/12/2019 at 06:55AM

12
#45 - Thomas Surlykke / @THSurlykke

02/12/2019 at 02:23PM

12
#46 - Jan Sturm / @JanSturm77

02/12/2019 at 08:30PM

12
#47 - lofoneax / @lofoneax

02/12/2019 at 11:46PM

12
#48 - adir ohayon / @AdirKip

02/13/2019 at 12:32PM

12
#49 - Sam Miller / @sam_miller93

02/16/2019 at 07:09PM

12
#50 - Turkey Man / @lvturkeyman

02/20/2019 at 04:12AM

12
#51 - BareTull / @BareTull3

02/24/2019 at 07:10PM

12
#52 - hn9u / @hn9u

02/25/2019 at 05:10PM

12
#53 - Zach Miller / @barizachsy

02/27/2019 at 02:48AM

12
#54 - eidolon / @eid_lon

02/27/2019 at 10:57PM

12
#55 - noisevoid / @noisevoid

02/28/2019 at 03:17AM

12
#56 - Michael Fiorenza / @Mike_Fiorenza

03/01/2019 at 02:53PM

12
#57 - Chris AtLee / @chrisatlee

03/01/2019 at 06:57PM

12
#58 - Lachlan Easton / @LBEaston

03/03/2019 at 02:30AM

12
#59 - Carsano / @DamienFbn

03/03/2019 at 09:25PM

12
#60 - Matthew Barry / @komputerwiz

03/04/2019 at 03:30PM