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

262 active golfers, 774 entries

Leaderboard (lowest score wins):
14
#151 - Krishnan Ravikumar / @rkrishnaan

02/09/2019 at 01:38PM

14
#152 - Calum Halpin / @calumhalpin

02/09/2019 at 09:50PM

14
#153 - BaffaloP 🐃🎨 / @bbaffalopp

02/11/2019 at 08:16AM

14
#154 - Alexandre Pinho / @lxpnh98

02/11/2019 at 11:14PM

14
#155 - Daniel Hjelm / @dhjelm

02/12/2019 at 10:46PM

14
#156 - filbranden / @filbranden

02/17/2019 at 03:21AM

14
#157 - Bruno / @Av31r3ns3

02/20/2019 at 12:12PM

14
#158 - algebraic-geometric / @algebraicgeome1

02/23/2019 at 02:41PM

14
#159 - sisi100 / @s1si100

02/24/2019 at 01:47PM

14
#160 - sjcomp / @sjcomp

02/25/2019 at 02:54PM

14
#161 - Kristian Haug / @krimhaug

02/26/2019 at 12:47PM

14
#162 - Jiho Noh / @JihoNoh

02/28/2019 at 02:01AM

14
#163 - mnx / @mnxx

02/28/2019 at 09:00PM

14
#164 - andrwyoung / @andrwyoung1

03/01/2019 at 06:44PM

14
#165 - ahm4711 / @ahm4711

03/01/2019 at 10:23PM

14
#166 - vince / @vincentvangott

03/02/2019 at 09:14PM

14
#167 - scottarver / @scottarver

03/03/2019 at 03:41AM

14
#168 - Sébastien Lavoie / @sgdlavoie

03/03/2019 at 05:21AM

14
#169 - Michal Sylwester / @msylw

03/04/2019 at 01:36PM

14
#170 - Saphire Lattice / @SaphireLattice

03/06/2019 at 05:02AM

14
#171 - Groovy / @groovy9

03/06/2019 at 09:28PM

14
#172 - Alessio / @aleb1an

03/09/2019 at 09:26PM

14
#173 - 李超 / @lichaorodxx

03/11/2019 at 06:13AM

14
#174 - Dmitry Romanovskiy / @WhereIsMyHause

03/11/2019 at 08:17AM

14
#175 - Isaak Meier / @IsaakMeier

03/12/2019 at 04:02PM

14
#176 - chenqiqi / @chenqiqi13

03/13/2019 at 02:34AM

14
#177 - ui / @ui61065627

03/13/2019 at 02:18PM

14
#178 - enji / @enji_ja

03/16/2019 at 12:15PM

14
#179 - ktbffh / @ktbffh73607665

03/20/2019 at 11:48AM

14
#180 - Gabriel / @cimourdain

03/20/2019 at 02:19PM