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

560 active golfers, 1805 entries

Leaderboard (lowest score wins):
13
#301 - Peter Demin / @peterdemin

07/29/2019 at 12:47PM

13
#302 - Bob Ren / @bobrenjc93

08/02/2019 at 04:39PM

13
#303 - Hot Take / @hottake69

08/17/2019 at 08:43PM

13
#304 - Adam Hartz / @awareofnow

08/21/2019 at 01:51AM

13
#305 - 波波 / @sbob87

08/26/2019 at 08:49AM

13
#306 - Abner jr / @Abnerjr19

09/15/2019 at 01:53PM

13
#307 - Elizabeth / @sprinkles418

10/18/2019 at 08:00PM

13
#308 - oldandslow / @oldandslow5

11/26/2019 at 07:22PM

13
#309 - David / @dalbertom

12/01/2019 at 08:07PM

13
#310 - 990 / @nisibasi990

12/07/2019 at 12:27PM

13
#311 - JimmyGymglish / @JGymglish

01/06/2020 at 03:02PM

13
#312 - nicosierra / @nicosierra84

01/09/2020 at 10:36PM

13
#313 - Falafel Palapel / @falafelpalapel

02/16/2020 at 10:06AM

13
#314 - Bhagwan / @El_Bhagwan

05/11/2020 at 08:56AM

13
#315 - Fabien C. / @vaga_io

05/15/2020 at 09:24AM

13
#316 - Norman Liu / @normanwliu

07/26/2020 at 12:00AM

14
#317 - Derek Schrock / @derekschrock

01/27/2019 at 03:57AM

14
#318 - drumstix576 / @drumstix576

01/27/2019 at 04:32AM

14
#319 - shay-tal / @shaytal

01/27/2019 at 05:11AM

14
#320 - Daniel Steinberg / @dstein64

01/27/2019 at 05:29AM

14
#321 - churaki / @churaki

01/27/2019 at 09:30AM

14
#322 - Jan Bundesmann / @janbundesmann

01/27/2019 at 10:11AM

14
#323 - Knoppi Brunzmann / @superknoppi

01/27/2019 at 10:13AM

14
#324 - AleksandarTrifunovic / @akstrfn

01/27/2019 at 11:40AM

14
#325 - Thomas Branch / @twighk

01/27/2019 at 12:39PM

14
#326 - Petro Тrouq / @zulolosi

01/27/2019 at 07:03PM

14
#327 - Mac Goever / @MacGoever

01/27/2019 at 08:14PM

14
#328 - h43z / @h43z

01/27/2019 at 09:03PM

14
#329 - Doug Tabuchi / @tabuchid

01/28/2019 at 02:37AM

14
#330 - Mangeart Yoric / @yoricm

01/28/2019 at 04:10AM