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

556 active golfers, 1789 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

13
#291 - Gitsnik / @dracyrys

04/25/2019 at 12:41PM

13
#292 - Urquhart #SurrenderBill / @LostUrquhart

05/14/2019 at 08:23PM

13
#293 - Tim Dean / @Tmdean

06/10/2019 at 08:00PM

13
#294 - Hugo Tai / @HugoTai100

06/11/2019 at 05:41AM

13
#295 - hiro_3_1 / @hiroshi160301

06/28/2019 at 09:16AM

13
#296 - hielke / @hielke24840788

07/07/2019 at 11:55AM

13
#297 - mirsemen / @mirsemen1

07/15/2019 at 09:42AM

13
#298 - Peter Demin / @peterdemin

07/29/2019 at 12:47PM

13
#299 - Bob Ren / @bobrenjc93

08/02/2019 at 04:39PM

13
#300 - Hot Take / @hottake69

08/17/2019 at 08:43PM