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

417 active golfers, 1293 entries

Leaderboard (lowest score wins):
14
#301 - mark / @feltnermj

06/07/2019 at 06:16PM

14
#302 - garry quested / @GQuested

07/08/2019 at 10:57AM

14
#303 - Crystal L / @Cartsly

07/13/2019 at 09:09PM

14
#304 - Matt Vaughn / @mattttvaughn

07/29/2019 at 01:29AM

14
#305 - ぽんぽこ / @ponpoko2342

08/01/2019 at 12:13PM

14
#306 - Ivo Blöchliger / @aigledesalpes

08/02/2019 at 06:22PM

14
#307 - Jonathan Browning / @yungjig90

08/02/2019 at 06:50PM

14
#308 - Mr_Djez / @DjezMr

08/05/2019 at 08:50PM

14
#309 - Simon Wilkinson / @simondwilkinson

08/24/2019 at 02:20PM

14
#310 - ciela / @lededex

08/28/2019 at 05:33PM

14
#311 - Ariel Miculas / @ArielMiculas

09/18/2019 at 04:56PM

14
#312 - 0xNinja / @0x_Ninja

10/22/2019 at 03:13PM

14
#313 - lucca augusto / @LuccaAugusto6

10/26/2019 at 10:57AM

14
#314 - Kevin Yokley / @kyokley19

11/03/2019 at 10:25PM

15
#315 - Cory Knapp / @coryknapp

01/27/2019 at 01:29AM

15
#316 - Sachet Mittal / @MittalSachet

01/27/2019 at 07:37AM

15
#317 - Miki Tebeka / @tebeka

01/27/2019 at 08:03AM

15
#318 - Rajit Singh / @rajitbsingh

01/30/2019 at 10:31AM

15
#319 - Bob_V / @Bob_V

01/30/2019 at 01:21PM

15
#320 - Colby Brown / @colbyabrown

02/11/2019 at 04:45AM

15
#321 - Wei Wen / @goweiwen

02/15/2019 at 07:23PM

15
#322 - Amado Antonini / @AmadoAntonini

03/07/2019 at 12:59PM

15
#323 - Guillaume Seren / @guillaumeseren

04/02/2019 at 10:08AM

15
#324 - woddy cyconer / @woddy1

04/22/2019 at 11:54AM

15
#325 - Iver Håkonsen / @HakonsenIver

04/23/2019 at 08:18PM

15
#326 - Lusington / @Lusington

04/24/2019 at 06:22PM

15
#327 - Phoon / @justflashhim

05/13/2019 at 12:24AM

15
#328 - YesSwear / @yesswore

05/20/2019 at 02:41PM

15
#329 - cinder 🔥 / @cyndrdev

06/27/2019 at 04:59PM

15
#330 - Noel Evans / @noelevans

08/01/2019 at 09:38AM