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

669 active golfers, 2209 entries

Leaderboard (lowest score wins):
12
#1 - Jon Krause / @jkrause314

01/27/2019 at 01:54AM

12
#2 - Khalid Harun / @KhalidHarun

01/27/2019 at 02:39AM

12
#3 - Smylers / @Smylers2

01/27/2019 at 07:34AM

12
#4 - Tinko Minko / @tandikula

01/27/2019 at 08:01AM

12
#5 - Jack Zhou / @jzhouuuuuuuuu

01/27/2019 at 09:24AM

12
#6 - PJ Frazer / @pj_frazer

01/27/2019 at 05:51PM

12
#7 - Dmatrix / @Dr_Dmatrix

01/27/2019 at 07:49PM

12
#8 - Kenny Wenny / @skewwhiffy

01/27/2019 at 08:05PM

12
#9 - Michael Aquilina / @mikeaquilina4

01/27/2019 at 08:38PM

12
#10 - Nick Amin / @thenamin

01/27/2019 at 09:17PM

12
#11 - tPenguinLTG / @tpenguinltg

01/28/2019 at 02:35AM

12
#12 - Saki Gw / @Sakigw

01/28/2019 at 08:08AM

12
#13 - TimMcGuire / @mcguire

01/28/2019 at 05:40PM

12
#14 - Reece Stevens / @reecestevens42

01/28/2019 at 09:53PM

12
#15 - John Braxler / @braxler

01/29/2019 at 06:10PM

12
#16 - Dax / @zacoxi

01/30/2019 at 01:53AM

12
#17 - Narwaro / @Narwaro

01/30/2019 at 02:18PM

12
#18 - pankaj singh / @pankajsingh013

01/30/2019 at 02:55PM

12
#19 - Elcio Ferreira / @elcio

01/30/2019 at 09:49PM

12
#20 - Dominic Z / @thammaaa

01/31/2019 at 12:12AM

12
#21 - Patrick Lavin / @LavinComputes

01/31/2019 at 02:04AM

12
#22 - πšƒπš’πšπš˜πšžπšŠπš— πšƒπšŽπš’πšœπšœπš’πšŽπš› / @TitouanT_

01/31/2019 at 10:24PM

12
#23 - Rasmus BergstrΓΆm / @JRasmusBm

02/02/2019 at 09:56AM

12
#24 - xer0.5ive / @Bibekshah

02/02/2019 at 12:51PM

12
#25 - Sebastien Nicoud / @sebnukem

02/02/2019 at 09:14PM

12
#26 - Kerson Hsiao / @KersonHsiao

02/03/2019 at 10:16AM

12
#27 - amal / @cdsudama

02/03/2019 at 02:18PM

12
#28 - Rene Ribaud / @Uggla_

02/03/2019 at 11:44PM

12
#29 - DanielaπŸ¦‹ / @hpless_romantic

02/04/2019 at 09:48PM

12
#30 - wes / @_weslly

02/04/2019 at 11:51PM