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

486 active golfers, 1563 entries

Leaderboard (lowest score wins):
14
#361 - lucca augusto / @LuccaAugusto6

10/26/2019 at 10:57AM

14
#362 - Kevin Yokley / @kyokley19

11/03/2019 at 10:25PM

14
#363 - 煮沸的白開水 / @season_303030

12/02/2019 at 02:56PM

14
#364 - johan wester / @wester87

12/18/2019 at 10:34PM

14
#365 - None / @sh1chuang

12/30/2019 at 03:09PM

14
#366 - 5m0r14x / @5m0r14x

01/10/2020 at 10:55PM

14
#367 - algonisian / @algonisian

01/18/2020 at 07:18AM

14
#368 - Daniel Amkær Sørensen / @AmkRensen

02/04/2020 at 09:39AM

15
#369 - Cory Knapp / @coryknapp

01/27/2019 at 01:29AM

15
#370 - Sachet Mittal / @MittalSachet

01/27/2019 at 07:37AM

15
#371 - Miki Tebeka / @tebeka

01/27/2019 at 08:03AM

15
#372 - Rajit Singh / @rajitbsingh

01/30/2019 at 10:31AM

15
#373 - Bob_V / @Bob_V

01/30/2019 at 01:21PM

15
#374 - Colby Brown / @colbyabrown

02/11/2019 at 04:45AM

15
#375 - Wei Wen / @goweiwen

02/15/2019 at 07:23PM

15
#376 - Amado Antonini / @AmadoAntonini

03/07/2019 at 12:59PM

15
#377 - Guillaume Seren / @guillaumeseren

04/02/2019 at 10:08AM

15
#378 - woddy cyconer / @woddy1

04/22/2019 at 11:54AM

15
#379 - Iver Håkonsen / @HakonsenIver

04/23/2019 at 08:18PM

15
#380 - Lusington / @Lusington

04/24/2019 at 06:22PM

15
#381 - Phoon / @justflashhim

05/13/2019 at 12:24AM

15
#382 - YesSwear / @yesswore

05/20/2019 at 02:41PM

15
#383 - cinder 🔥 / @cyndrdev

06/27/2019 at 04:59PM

15
#384 - Noel Evans / @noelevans

08/01/2019 at 09:38AM

15
#385 - Eric Banisadr / @EBanisadr

08/07/2019 at 09:35PM

15
#386 - Flo / @RealFFJB

08/08/2019 at 11:29AM

15
#387 - André Reigoto / @AndreReigoto

08/11/2019 at 03:33AM

15
#388 - rr / @rodgeur31

10/25/2019 at 10:50PM

15
#389 - Marten Ringwelski / @Marteon27

12/07/2019 at 07:22PM

16
#390 - Mark Havas / @techuntangler

02/04/2019 at 12:38PM