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

313 active golfers, 903 entries

Leaderboard (lowest score wins):
12
#91 - パコ タコ (Nassty) / @elnassto

04/22/2019 at 04:47PM

12
#92 - Apex Predatoe / @EthanMcQuarrie

04/23/2019 at 01:23PM

12
#93 - shredded / @shredded

04/24/2019 at 09:02PM

12
#94 - Grant / @grant_7788

04/25/2019 at 02:04PM

12
#95 - ImaNotgate / @INotgate

04/28/2019 at 02:25AM

12
#96 - Kai.Li / @KaiLi19

04/28/2019 at 03:51AM

12
#97 - tenfy / @tenfy4

04/30/2019 at 01:37AM

12
#98 - Sherab Giovannini / @shaddycls

05/01/2019 at 02:20PM

12
#99 - hoge2341836 / @RootShunsuke

05/04/2019 at 04:11AM

12
#100 - Koo Zhengqun / @zhengqunkoo

05/04/2019 at 05:08AM

12
#101 - Manos Koutselakis / @koutselakis_m

05/05/2019 at 12:56AM

12
#102 - Quinn Collins / @Quinn00239061

05/07/2019 at 12:03PM

12
#103 - Jairo Suarez / @xyos

05/08/2019 at 07:32PM

12
#104 - Pauli Taipale / @pauli_taipale

05/09/2019 at 03:05PM

12
#105 - りょ / @ryoo141

05/10/2019 at 05:48AM

12
#106 - Fiffy / @sr21486642

05/10/2019 at 08:25AM

12
#107 - Denton Phosavanh / @DPhosavanh

05/12/2019 at 02:04PM

12
#108 - tllilleh / @tllilleh

05/14/2019 at 09:39PM

12
#109 - arsi arola / @mos_kiitto

05/15/2019 at 03:53PM

12
#110 - Leiser Fernández / @leiserfg

05/19/2019 at 02:31PM

12
#111 - tynanguerra / @tynanguerra

05/20/2019 at 07:45PM

12
#112 - heppen / @heppen_He

05/21/2019 at 11:42AM

12
#113 - Ivan Ho / @ivandaho

05/22/2019 at 08:27AM

12
#114 - Nick Yeow / @nickyeow

05/22/2019 at 01:01PM

12
#115 - Gar Morley / @garmorley

05/25/2019 at 08:42PM

12
#116 - Théo / @Theodnls

05/26/2019 at 12:14AM

12
#117 - Seunghun Lee / @earlbread

05/27/2019 at 01:44PM

12
#118 - Etai Nativ / @enativ72

05/29/2019 at 05:26AM

12
#119 - Foo Bar / @foobar01123

05/30/2019 at 05:50AM

12
#120 - mkaminaga / @mkmng3

06/05/2019 at 04:22AM