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

532 active golfers, 1702 entries

Leaderboard (lowest score wins):
14
#391 - johan wester / @wester87

12/18/2019 at 10:34PM

14
#392 - None / @sh1chuang

12/30/2019 at 03:09PM

14
#393 - 5m0r14x / @5m0r14x

01/10/2020 at 10:55PM

14
#394 - algonisian / @algonisian

01/18/2020 at 07:18AM

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

02/04/2020 at 09:39AM

14
#396 - brad / @bitsbybrad

03/04/2020 at 12:50PM

14
#397 - Harsh Raj / @harshraj22aug

03/07/2020 at 04:54PM

14
#398 - vvaannaa3 / @vvaannaa3

04/02/2020 at 09:42AM

14
#399 - fedja golf / @FedjaGolf

04/13/2020 at 03:04AM

14
#400 - volandkit / @volandkit

04/20/2020 at 05:34PM

14
#401 - whale / @Hari84444713

05/23/2020 at 10:53PM

14
#402 - 于吉星 / @fishermryn

05/25/2020 at 09:23AM

15
#403 - Cory Knapp / @coryknapp

01/27/2019 at 01:29AM

15
#404 - Sachet Mittal / @MittalSachet

01/27/2019 at 07:37AM

15
#405 - Miki Tebeka / @tebeka

01/27/2019 at 08:03AM

15
#406 - Rajit Singh / @rajitbsingh

01/30/2019 at 10:31AM

15
#407 - Bob_V / @Bob_V

01/30/2019 at 01:21PM

15
#408 - Colby Brown / @colbyabrown

02/11/2019 at 04:45AM

15
#409 - Wei Wen / @goweiwen

02/15/2019 at 07:23PM

15
#410 - Amado Antonini / @AmadoAntonini

03/07/2019 at 12:59PM

15
#411 - Guillaume Seren / @guillaumeseren

04/02/2019 at 10:08AM

15
#412 - woddy cyconer / @woddy1

04/22/2019 at 11:54AM

15
#413 - Iver Håkonsen / @HakonsenIver

04/23/2019 at 08:18PM

15
#414 - Lusington / @Lusington

04/24/2019 at 06:22PM

15
#415 - Phoon / @justflashhim

05/13/2019 at 12:24AM

15
#416 - YesSwear / @yesswore

05/20/2019 at 02:41PM

15
#417 - cinder 🔥 / @cyndrdev

06/27/2019 at 04:59PM

15
#418 - Noel Evans / @noelevans

08/01/2019 at 09:38AM

15
#419 - Eric Banisadr / @EBanisadr

08/07/2019 at 09:35PM

15
#420 - Flo / @RealFFJB

08/08/2019 at 11:29AM