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

414 active golfers, 1278 entries

Leaderboard (lowest score wins):
13
#211 - Hugo Tai / @HugoTai100

06/11/2019 at 05:41AM

13
#212 - hiro_3_1 / @hiroshi160301

06/28/2019 at 09:16AM

13
#213 - hielke / @hielke24840788

07/07/2019 at 11:55AM

13
#214 - mirsemen / @mirsemen1

07/15/2019 at 09:42AM

13
#215 - Peter Demin / @peterdemin

07/29/2019 at 12:47PM

13
#216 - Bob Ren / @bobrenjc93

08/02/2019 at 04:39PM

13
#217 - Hot Take / @hottake69

08/17/2019 at 08:43PM

13
#218 - Adam Hartz / @awareofnow

08/21/2019 at 01:51AM

13
#219 - 波波 / @sbob87

08/26/2019 at 08:49AM

13
#220 - Abner jr / @Abnerjr19

09/15/2019 at 01:53PM

13
#221 - Elizabeth / @sprinkles418

10/18/2019 at 08:00PM

14
#222 - Derek Schrock / @derekschrock

01/27/2019 at 03:57AM

14
#223 - drumstix576 / @drumstix576

01/27/2019 at 04:32AM

14
#224 - shay-tal / @shaytal

01/27/2019 at 05:11AM

14
#225 - Daniel Steinberg / @dstein64

01/27/2019 at 05:29AM

14
#226 - churaki / @churaki

01/27/2019 at 09:30AM

14
#227 - Jan Bundesmann / @janbundesmann

01/27/2019 at 10:11AM

14
#228 - Knoppi Brunzmann / @superknoppi

01/27/2019 at 10:13AM

14
#229 - AleksandarTrifunovic / @akstrfn

01/27/2019 at 11:40AM

14
#230 - Thomas Branch / @twighk

01/27/2019 at 12:39PM

14
#231 - Marc Päpper / @mpaepper

01/27/2019 at 02:08PM

14
#232 - Petro Тrouq / @zulolosi

01/27/2019 at 07:03PM

14
#233 - Mac Goever / @MacGoever

01/27/2019 at 08:14PM

14
#234 - h43z / @h43z

01/27/2019 at 09:03PM

14
#235 - Doug Tabuchi / @tabuchid

01/28/2019 at 02:37AM

14
#236 - Mangeart Yoric / @yoricm

01/28/2019 at 04:10AM

14
#237 - Benoit Benoit / @Benoit_Tgt

01/28/2019 at 09:06AM

14
#238 - HuyHung / @hungdh0x5e

01/29/2019 at 12:16PM

14
#239 - 默罕默德 / @Rt6RjEAJ987Woes

01/31/2019 at 09:18AM

14
#240 - Артем Мухометзянов / @Timon_Surikat

01/31/2019 at 10:11AM