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

537 active golfers, 1716 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

13
#279 - Gitsnik / @dracyrys

04/25/2019 at 12:41PM

13
#280 - Urquhart #SurrenderBill / @LostUrquhart

05/14/2019 at 08:23PM

13
#281 - Tim Dean / @Tmdean

06/10/2019 at 08:00PM

13
#282 - Hugo Tai / @HugoTai100

06/11/2019 at 05:41AM

13
#283 - hiro_3_1 / @hiroshi160301

06/28/2019 at 09:16AM

13
#284 - hielke / @hielke24840788

07/07/2019 at 11:55AM

13
#285 - mirsemen / @mirsemen1

07/15/2019 at 09:42AM

13
#286 - Peter Demin / @peterdemin

07/29/2019 at 12:47PM

13
#287 - Bob Ren / @bobrenjc93

08/02/2019 at 04:39PM

13
#288 - Hot Take / @hottake69

08/17/2019 at 08:43PM

13
#289 - Adam Hartz / @awareofnow

08/21/2019 at 01:51AM

13
#290 - 波波 / @sbob87

08/26/2019 at 08:49AM

13
#291 - Abner jr / @Abnerjr19

09/15/2019 at 01:53PM

13
#292 - Elizabeth / @sprinkles418

10/18/2019 at 08:00PM

13
#293 - oldandslow / @oldandslow5

11/26/2019 at 07:22PM

13
#294 - David / @dalbertom

12/01/2019 at 08:07PM

13
#295 - 990 / @nisibasi990

12/07/2019 at 12:27PM

13
#296 - JimmyGymglish / @JGymglish

01/06/2020 at 03:02PM

13
#297 - nicosierra / @nicosierra84

01/09/2020 at 10:36PM

13
#298 - Falafel Palapel / @falafelpalapel

02/16/2020 at 10:06AM

13
#299 - Bhagwan / @El_Bhagwan

05/11/2020 at 08:56AM

13
#300 - Fabien C. / @vaga_io

05/15/2020 at 09:24AM