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

532 active golfers, 1702 entries

Leaderboard (lowest score wins):
14
#301 - shay-tal / @shaytal

01/27/2019 at 05:11AM

14
#302 - Daniel Steinberg / @dstein64

01/27/2019 at 05:29AM

14
#303 - churaki / @churaki

01/27/2019 at 09:30AM

14
#304 - Jan Bundesmann / @janbundesmann

01/27/2019 at 10:11AM

14
#305 - Knoppi Brunzmann / @superknoppi

01/27/2019 at 10:13AM

14
#306 - AleksandarTrifunovic / @akstrfn

01/27/2019 at 11:40AM

14
#307 - Thomas Branch / @twighk

01/27/2019 at 12:39PM

14
#308 - Petro Тrouq / @zulolosi

01/27/2019 at 07:03PM

14
#309 - Mac Goever / @MacGoever

01/27/2019 at 08:14PM

14
#310 - h43z / @h43z

01/27/2019 at 09:03PM

14
#311 - Doug Tabuchi / @tabuchid

01/28/2019 at 02:37AM

14
#312 - Mangeart Yoric / @yoricm

01/28/2019 at 04:10AM

14
#313 - Benoit Benoit / @Benoit_Tgt

01/28/2019 at 09:06AM

14
#314 - HuyHung / @hungdh0x5e

01/29/2019 at 12:16PM

14
#315 - 默罕默德 / @Rt6RjEAJ987Woes

01/31/2019 at 09:18AM

14
#316 - Тёма / @Timon_Surikat

01/31/2019 at 10:11AM

14
#317 - Jacob Degeling / @JacobDegeling

02/01/2019 at 11:19AM

14
#318 - James / @Dronak

02/02/2019 at 01:05AM

14
#319 - Cason Rogers / @casonarogers

02/02/2019 at 02:56AM

14
#320 - Doesit Matter / @DoesitMark

02/03/2019 at 09:38AM

14
#321 - tenteke / @kuskus3

02/04/2019 at 02:26PM

14
#322 - Adomas Jatužis / @adomixaszvers

02/05/2019 at 07:44PM

14
#323 - LiterallyJustForVimGolf / @just_vim

02/05/2019 at 09:44PM

14
#324 - Larry McClenon / @uptotheroof

02/06/2019 at 01:48AM

14
#325 - Sxcy / @SxcyX

02/06/2019 at 02:55PM

14
#326 - Kevin Ullmann / @kevosauce

02/07/2019 at 12:14AM

14
#327 - Arijus / @argshook

02/07/2019 at 09:23AM

14
#328 - noname / @noname75810867

02/09/2019 at 06:22AM

14
#329 - Krishnan Ravikumar / @rkrishnaan

02/09/2019 at 01:38PM

14
#330 - Calum Halpin / @calumhalpin

02/09/2019 at 09:50PM