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

589 active golfers, 1900 entries

Leaderboard (lowest score wins):
12
#271 - Moatvald / @moatvald

04/18/2020 at 07:22PM

12
#272 - Arthur Goodman / @ArthurGoodman3

04/29/2020 at 05:56PM

12
#273 - Soumadeep Saha / @SoumadeepSaha8

05/10/2020 at 02:00AM

12
#274 - Kevin Keefe / @KevinKeefe5

05/14/2020 at 07:35AM

12
#275 - Andreas Buhr / @andreas_buhr

05/21/2020 at 01:53PM

12
#276 - Ryan Nevius / @ryannevius

05/25/2020 at 06:06AM

12
#277 - Yannick / @Yannick88147038

06/01/2020 at 02:44PM

12
#278 - Valdimar / @genkobar

06/02/2020 at 10:05PM

12
#279 - loupiot.veloce / @LoupiotVeloce

06/04/2020 at 11:27AM

12
#280 - MA Calero / @GaleonCalero

06/07/2020 at 04:46PM

12
#281 - mocihan / @mocihan

07/02/2020 at 12:32PM

12
#282 - Brennan Barker / @BrennanJBarker

07/05/2020 at 04:35AM

12
#283 - 大矢元海 / @008Genkai

07/08/2020 at 01:20PM

12
#284 - majo senf / @majo_senf

07/14/2020 at 11:01AM

12
#285 - Bob / @Bob75461026

07/17/2020 at 05:49PM

12
#286 - JL T / @l0f4r0

07/20/2020 at 09:28PM

12
#287 - Saurabh / @Saurabh09299

07/24/2020 at 06:07AM

12
#288 - Silvano Biemans / @smbiemans

07/25/2020 at 05:20PM

12
#289 - Rustem B. / @_rustemb

07/31/2020 at 09:02AM

12
#290 - Dionysus / @user101user

08/03/2020 at 06:16PM

12
#291 - Thiago Becker / @beckert

08/07/2020 at 04:40PM

12
#292 - GenericHardwareGamer / @GnrikHrdwrGamer

08/08/2020 at 01:38AM

12
#293 - mindgitrwx / @mindgitrwx

08/08/2020 at 05:48AM

12
#294 - Martin Kauppinen / @MartinKauppinen

08/15/2020 at 06:47PM

12
#295 - Ihor / @Ihor96382508

08/16/2020 at 03:32PM

12
#296 - Tanzeel Kazi / @tanzeelkazi

08/21/2020 at 06:26AM

12
#297 - Alex Daum / @JustBeAwesomer

08/21/2020 at 12:22PM

12
#298 - speisz / @speiszc

08/26/2020 at 08:24AM

12
#299 - Kaustubh Murumkar / @k_austub_h

08/30/2020 at 01:51PM

12
#300 - Matthias / @Matthia78044730

09/01/2020 at 03:27PM