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

315 active golfers, 911 entries

Leaderboard (lowest score wins):
12
#121 - deurzen / @devrzen

06/06/2019 at 11:56AM

12
#122 - Ben M / @Sweet_Scientist

06/07/2019 at 02:07AM

12
#123 - Joo Ming / @JooMingJoo

06/07/2019 at 11:47AM

12
#124 - Sæther / @baltre1

06/07/2019 at 01:52PM

12
#125 - BunFluffman / @BFluffman

06/07/2019 at 05:10PM

12
#126 - Erik Lindeborg / @ErikLindeborg

06/07/2019 at 06:12PM

12
#127 - overlookedhashmap / @overlookedhash1

06/08/2019 at 08:06AM

12
#128 - Shyam Padia / @thegeektherapy

06/10/2019 at 09:46PM

12
#129 - Eirik Furuseth / @heplaphon

06/11/2019 at 04:53PM

12
#130 - hodenkobold66 / @hodenkobold66

06/23/2019 at 11:22AM

12
#131 - Aurel / @AurelienFebvre

06/26/2019 at 08:34PM

12
#132 - Johnny footlight / @JFootlight

06/29/2019 at 10:34AM

12
#133 - Epecb / @BceEpecb

06/30/2019 at 07:01PM

12
#134 - Chester Yap / @Chest_ErYap

07/11/2019 at 04:13AM

12
#135 - aurelian ardeleanu / @inquarto

07/11/2019 at 12:10PM

12
#136 - Tim / @BusingTim

07/14/2019 at 08:14AM

12
#137 - Rohit Kumar Jena / @rohitrango

07/14/2019 at 05:21PM

12
#138 - Neil Struthers / @struthersneil

07/16/2019 at 02:45PM

12
#139 - Drew Gottlieb / @Drew_Gottlieb

07/20/2019 at 05:45AM

12
#140 - Christopher Currens / @chriscurrens

07/22/2019 at 05:31PM

13
#141 - Gitsnik / @dracyrys

04/25/2019 at 12:41PM

13
#142 - Francois Urquhart / @LostUrquhart

05/14/2019 at 08:23PM

13
#143 - Tim Dean / @Tmdean

06/10/2019 at 08:00PM

13
#144 - Hugo Tai / @HugoTai100

06/11/2019 at 05:41AM

13
#145 - hiro_3_1 / @hiroshi160301

06/28/2019 at 09:16AM

13
#146 - hielke / @hielke24840788

07/07/2019 at 11:55AM

13
#147 - mirsemen / @mirsemen1

07/15/2019 at 09:42AM

14
#148 - Derek Schrock / @derekschrock

01/27/2019 at 03:57AM

14
#149 - drumstix576 / @drumstix576

01/27/2019 at 04:32AM

14
#150 - shay-tal / @shaytal

01/27/2019 at 05:11AM