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

313 active golfers, 903 entries

Leaderboard (lowest score wins):
14
#211 - Duke Du / @DukeDu2

03/22/2019 at 03:51AM

14
#212 - 黒澤亮二 / @rjkuro

03/27/2019 at 01:05PM

14
#213 - Mark Stillwell / @marklee77

03/31/2019 at 11:17PM

14
#214 - Scott / @chil2

04/02/2019 at 02:30AM

14
#215 - wanghbxxxx / @wanghbxxxx

04/02/2019 at 02:32AM

14
#216 - GS / @GSijmens

04/05/2019 at 11:08PM

14
#217 - Michał Łowicki / @mlowicki

04/12/2019 at 01:11PM

14
#218 - Laurent Atlan / @laurentatlan1

04/14/2019 at 07:12PM

14
#219 - Norbert / @mullno

04/16/2019 at 04:28PM

14
#220 - 이종혁 / @BluePaisa

04/17/2019 at 09:03AM

14
#221 - Pratik / @prathik_t

04/18/2019 at 07:59AM

14
#222 - Fredrik Bjerkås / @fbjerkas

04/22/2019 at 12:44AM

14
#223 - Izaak van Dongen / @goedel_gang

04/27/2019 at 11:40PM

14
#224 - Daniel Hakimian / @danrafhak

05/15/2019 at 04:32AM

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

05/15/2019 at 12:27PM

14
#226 - Arno / @arnoxmp

05/16/2019 at 10:23AM

14
#227 - Edan Sneh / @edan_sneh

06/04/2019 at 07:45AM

14
#228 - mark / @feltnermj

06/07/2019 at 06:16PM

14
#229 - garry quested / @GQuested

07/08/2019 at 10:57AM

14
#230 - Crystal L / @Cartsly

07/13/2019 at 09:09PM

15
#231 - Cory Knapp / @coryknapp

01/27/2019 at 01:29AM

15
#232 - Sachet Mittal / @MittalSachet

01/27/2019 at 07:37AM

15
#233 - Miki Tebeka / @tebeka

01/27/2019 at 08:03AM

15
#234 - Rajit Singh / @rajitbsingh

01/30/2019 at 10:31AM

15
#235 - Bob_V / @Bob_V

01/30/2019 at 01:21PM

15
#236 - Colby Brown / @colbyabrown

02/11/2019 at 04:45AM

15
#237 - Wei Wen / @goweiwen

02/15/2019 at 07:23PM

15
#238 - Amado Antonini / @AmadoAntonini

03/07/2019 at 12:59PM

15
#239 - Guillaume Seren / @guillaumeseren

04/02/2019 at 10:08AM

15
#240 - woddy cyconer / @woddy1

04/22/2019 at 11:54AM