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

574 active golfers, 1840 entries

Leaderboard (lowest score wins):
14
#391 - Michał Łowicki / @mlowicki

04/12/2019 at 01:11PM

14
#392 - Laurent Atlan / @laurentatlan1

04/14/2019 at 07:12PM

14
#393 - Norbert / @mullno

04/16/2019 at 04:28PM

14
#394 - 이종혁 / @BluePaisa

04/17/2019 at 09:03AM

14
#395 - Pratik / @prathik_t

04/18/2019 at 07:59AM

14
#396 - Fredrik Bjerkås / @fbjerkas

04/22/2019 at 12:44AM

14
#397 - Izaak van Dongen / @goedel_gang

04/27/2019 at 11:40PM

14
#398 - Daniel Hakimian / @danrafhak

05/15/2019 at 04:32AM

14
#399 - Καράτε Μόνο / @karate_mono

05/15/2019 at 12:27PM

14
#400 - Arno / @arnoxmp

05/16/2019 at 10:23AM

14
#401 - Edan Sneh / @edan_sneh

06/04/2019 at 07:45AM

14
#402 - mark / @feltnermj

06/07/2019 at 06:16PM

14
#403 - garry quested / @GQuested

07/08/2019 at 10:57AM

14
#404 - Crystal L / @Cartsly

07/13/2019 at 09:09PM

14
#405 - Matt Vaughn / @mattttvaughn

07/29/2019 at 01:29AM

14
#406 - ぽんぽこ / @ponpoko2342

08/01/2019 at 12:13PM

14
#407 - Ivo Blöchliger / @aigledesalpes

08/02/2019 at 06:22PM

14
#408 - Jonathan Browning / @yungjig90

08/02/2019 at 06:50PM

14
#409 - Mr_Djez / @DjezMr

08/05/2019 at 08:50PM

14
#410 - Simon Wilkinson / @simondwilkinson

08/24/2019 at 02:20PM

14
#411 - ciela / @lededex

08/28/2019 at 05:33PM

14
#412 - Ariel Miculas / @ArielMiculas

09/18/2019 at 04:56PM

14
#413 - 0xNinja / @0x_Ninja

10/22/2019 at 03:13PM

14
#414 - lucca augusto / @LuccaAugusto6

10/26/2019 at 10:57AM

14
#415 - Kevin Yokley / @kyokley19

11/03/2019 at 10:25PM

14
#416 - 煮沸的白開水 / @season_303030

12/02/2019 at 02:56PM

14
#417 - johan wester / @wester87

12/18/2019 at 10:34PM

14
#418 - None / @sh1chuang

12/30/2019 at 03:09PM

14
#419 - 5m0r14x / @5m0r14x

01/10/2020 at 10:55PM

14
#420 - algonisian / @algonisian

01/18/2020 at 07:18AM