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):
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

12
#141 - Joe Fahnestock🌵 / @Joecupojoe

07/23/2019 at 03:00PM

12
#142 - band / @band26376522

07/24/2019 at 09:19PM

12
#143 - Markus / @ARealAnnoyance

07/29/2019 at 11:19AM

12
#144 - Ron Holt / @ron_holt

08/03/2019 at 02:45AM

12
#145 - Joel Elkins / @dice_tea

08/03/2019 at 09:15PM

12
#146 - Hampus HAUFFMAN / @HampusHauffman

08/05/2019 at 12:20PM

12
#147 - りんご / @ringo9971

08/06/2019 at 09:26AM

12
#148 - majestic sloth / @SamLlama

08/08/2019 at 05:39AM

12
#149 - sooqua / @sooqua

08/08/2019 at 10:58AM

12
#150 - Hayden Wang / @HaydenWang2

08/09/2019 at 02:09AM