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

602 active golfers, 1948 entries

Leaderboard (lowest score wins):
14
#451 - This is a sniff free zone / @electronjunkie

08/16/2020 at 12:50PM

14
#452 - Андрей / @appomsk

08/16/2020 at 06:05PM

14
#453 - fenn.stefan@gmail.com / @FennStefan

08/25/2020 at 01:58PM

14
#454 - Rin UmU 🍙🦊⛩️❄️🎃🎆🎇✨🌌🌃 / @dareka826

10/31/2020 at 01:06AM

14
#455 - Zack Freedman / @freedman_zack

11/08/2020 at 07:42PM

15
#456 - Cory Knapp / @coryknapp

01/27/2019 at 01:29AM

15
#457 - Sachet Mittal / @MittalSachet

01/27/2019 at 07:37AM

15
#458 - Miki Tebeka / @tebeka

01/27/2019 at 08:03AM

15
#459 - Rajit Singh / @rajitbsingh

01/30/2019 at 10:31AM

15
#460 - Bob_V / @Bob_V

01/30/2019 at 01:21PM

15
#461 - Colby Brown / @colbyabrown

02/11/2019 at 04:45AM

15
#462 - Wei Wen / @goweiwen

02/15/2019 at 07:23PM

15
#463 - Amado Antonini / @AmadoAntonini

03/07/2019 at 12:59PM

15
#464 - Guillaume Seren / @guillaumeseren

04/02/2019 at 10:08AM

15
#465 - woddy cyconer / @woddy1

04/22/2019 at 11:54AM

15
#466 - Iver Håkonsen / @HakonsenIver

04/23/2019 at 08:18PM

15
#467 - Lusington / @Lusington

04/24/2019 at 06:22PM

15
#468 - Phoon / @justflashhim

05/13/2019 at 12:24AM

15
#469 - YesSwear / @yesswore

05/20/2019 at 02:41PM

15
#470 - cinder 🔥 / @cyndrdev

06/27/2019 at 04:59PM

15
#471 - Noel Evans / @noelevans

08/01/2019 at 09:38AM

15
#472 - Eric Banisadr / @EBanisadr

08/07/2019 at 09:35PM

15
#473 - Flo / @RealFFJB

08/08/2019 at 11:29AM

15
#474 - André Reigoto / @AndreReigoto

08/11/2019 at 03:33AM

15
#475 - rr / @rodgeur31

10/25/2019 at 10:50PM

15
#476 - Marten Ringwelski / @Marteon27

12/07/2019 at 07:22PM

15
#477 - Bitt Faulk / @bittfaulk

03/02/2020 at 10:23PM

15
#478 - Ali Aslan / @AliAsla95742367

05/04/2020 at 04:57AM

15
#479 - Mack Hutsell / @sellshuts

05/24/2020 at 07:34PM

15
#480 - RockerZZY / @rocker_zzy

05/31/2020 at 03:57AM