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

183 active golfers, 506 entries

Leaderboard (lowest score wins):
12
#61 - zh0ng / @zh00ng

03/06/2019 at 08:52AM

12
#62 - Alexander Popov / @Alexand01782341

03/06/2019 at 03:44PM

12
#63 - Oddwel / @Oddwel

03/07/2019 at 12:33PM

12
#64 - Robert Orr / @orrrobert

03/08/2019 at 07:21PM

12
#65 - No Not / @NoNot44894988

03/09/2019 at 12:32PM

12
#66 - zenwalker / @zenwalker93

03/09/2019 at 02:04PM

12
#67 - k24w24 / @k24w24

03/18/2019 at 12:19PM

12
#68 - James Perry Hartman / @JauntyJPH

03/18/2019 at 06:27PM

12
#69 - Parsa Amini / @ParsaAmini

03/19/2019 at 05:36AM

12
#70 - 拉书单 / @NaapN2

03/19/2019 at 11:10AM

12
#71 - omrisarig / @omrisarig

03/19/2019 at 06:13PM

12
#72 - 🅷🅰🆁🆁🆈 A. Abrahamson / @HarryAAbrahams1

03/20/2019 at 06:02PM

12
#73 - Raul / @Raul50174499

03/22/2019 at 03:39PM

12
#74 - Unfair / @ItIsUnfair

03/24/2019 at 06:59PM

14
#75 - Derek Schrock / @derekschrock

01/27/2019 at 03:57AM

14
#76 - drumstix576 / @drumstix576

01/27/2019 at 04:32AM

14
#77 - shay-tal / @shaytal

01/27/2019 at 05:11AM

14
#78 - Daniel Steinberg / @dstein64

01/27/2019 at 05:29AM

14
#79 - churaki / @churaki

01/27/2019 at 09:30AM

14
#80 - Jan Bundesmann / @janbundesmann

01/27/2019 at 10:11AM

14
#81 - Knoppi Brunzmann / @superknoppi

01/27/2019 at 10:13AM

14
#82 - AleksandarTrifunovic / @akstrfn

01/27/2019 at 11:40AM

14
#83 - Thomas Branch / @twighk

01/27/2019 at 12:39PM

14
#84 - Marc Päpper / @mpaepper

01/27/2019 at 02:08PM

14
#85 - Petro Тrouq / @zulolosi

01/27/2019 at 07:03PM

14
#86 - Mac Goever / @MacGoever

01/27/2019 at 08:14PM

14
#87 - h43z / @h43z

01/27/2019 at 09:03PM

14
#88 - Doug Tabuchi / @tabuchid

01/28/2019 at 02:37AM

14
#89 - Mangeart Yoric / @yoricm

01/28/2019 at 04:10AM

14
#90 - Benoit Tigeot / @Benoit_Tgt

01/28/2019 at 09:06AM