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

372 active golfers, 1099 entries

Leaderboard (lowest score wins):
17
#301 - Robinson Bernand / @RobynBekouz

02/15/2019 at 02:13PM

17
#302 - Antonio Bayonas / @BayonasAntonio

03/01/2019 at 08:38PM

17
#303 - Nygel Bennett / @nucjellfish

04/02/2019 at 01:30PM

17
#304 - Joel Wanner / @wannerjo

05/07/2019 at 02:00PM

17
#305 - Nils ANDRÉ CHANG / @NilsIRL

05/08/2019 at 10:08PM

17
#306 - Am Jam / @LoneJam

06/07/2019 at 01:30AM

18
#307 - Johnny / @saltydreadbeard

02/08/2019 at 02:11AM

19
#308 - Brady Barten / @bvfbarten

05/08/2019 at 04:26PM

19
#309 - Gunnar Thoreson / @ThReGgOn

09/05/2019 at 01:18PM

21
#310 - JvdB01 / @JvdB001

05/07/2019 at 10:11PM

21
#311 - Viktor Fukala / @FukalaViktor

07/30/2019 at 01:30PM

21
#312 - Masi Valkonen / @masivalkonen

08/28/2019 at 06:27AM

22
#313 - Inf Loop / @infl00p

03/24/2019 at 06:47PM

22
#314 - Yegor Myshlyaev / @YegorMy

04/15/2019 at 09:56AM

22
#315 - EliTheCoder / @elithecoder

04/30/2019 at 04:14PM

22
#316 - Lingyu Yi / @LgxLingyu

05/16/2019 at 02:29AM

22
#317 - albalitz / @_albalitz

06/05/2019 at 04:16PM

22
#318 - grace / @grcekh

06/13/2019 at 03:13AM

23
#319 - Mauricio Ariza / @_hell_spawn

01/28/2019 at 10:16PM

23
#320 - Casey K / @account_name_2

02/06/2019 at 03:09PM

23
#321 - Bumazhka / @Bumazhka

02/09/2019 at 10:27AM

23
#322 - tnagai / @tnagai

02/16/2019 at 09:10PM

23
#323 - Emil Braserud / @Erdustiggen

03/16/2019 at 03:51PM

23
#324 - Banner B. Schafer / @BannerBSchafer

04/08/2019 at 03:32AM

23
#325 - john ford / @johnfor65634499

04/19/2019 at 10:01PM

23
#326 - Matthias Kausl / @sig_segv

04/25/2019 at 06:09PM

23
#327 - vimgolfer24271 / @vimgolfer24271

05/12/2019 at 05:13PM

23
#328 - Corey Alexander / @coreyja_dev

06/27/2019 at 03:12AM

23
#329 - Florent Uguet / @FlorentUguet

07/10/2019 at 09:49AM

23
#330 - Fred Leclerc / @fredleclerc

07/24/2019 at 09:24PM