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):
19
#481 - Steve Racanovic / @steve_racanovic

01/12/2020 at 08:45PM

20
#482 - James Rayman / @jamsramen

03/05/2020 at 02:35AM

20
#483 - Neil Earnshaw / @neilearnshaw

05/10/2020 at 05:23PM

20
#484 - mp / @mp28812322

07/17/2020 at 06:43PM

20
#485 - elroylee / @elroylee11

08/22/2020 at 03:19PM

21
#486 - JvdB01 / @JvdB001

05/07/2019 at 10:11PM

21
#487 - Viktor Fukala / @FukalaViktor

07/30/2019 at 01:30PM

21
#488 - Masi Valkonen / @masivalkonen

08/28/2019 at 06:27AM

21
#489 - mcacookie / @mcacookie

09/20/2019 at 02:28PM

21
#490 - Константин / @pillar_vandyke

10/31/2019 at 06:56PM

21
#491 - Eliseo / @Eliseohh_A

11/25/2019 at 07:54PM

21
#492 - Christopher Kolstad / @chriswk

02/06/2020 at 07:42PM

21
#493 - Pham Tuan Anh / @anhpt379

02/17/2020 at 05:00AM

21
#494 - Sanchez / @r0756108

02/18/2020 at 11:54PM

21
#495 - Lee Kian Tat Ken / @thekingtat

04/04/2020 at 03:45AM

21
#496 - kayay78 / @h0taao

05/06/2020 at 02:53AM

22
#497 - Inf Loop / @infl00p

03/24/2019 at 06:47PM

22
#498 - Yegor Myshlyaev / @YegorMy

04/15/2019 at 09:56AM

22
#499 - EliTheCoder / @elithecoder

04/30/2019 at 04:14PM

22
#500 - Lingyu Yi / @LgxLingyu

05/16/2019 at 02:29AM

22
#501 - albalitz / @_albalitz

06/05/2019 at 04:16PM

22
#502 - grace / @grcekh

06/13/2019 at 03:13AM

22
#503 - Lion de Bell / @CLGBamboo

11/30/2019 at 11:44PM

22
#504 - 鏡崎ましろ / @KagamisakiMsr

01/27/2020 at 07:15AM

22
#505 - samet ぷ / @jssamet

02/01/2020 at 05:19PM

22
#506 - Alvaro Melendez / @alvaromelendezh

02/21/2020 at 03:12PM

22
#507 - David Bragmark / @DBragmark

04/29/2020 at 03:27PM

22
#508 - vito / @vito49999722

08/01/2020 at 08:22AM

23
#509 - Mauricio Ariza / @_hell_spawn

01/28/2019 at 10:16PM

23
#510 - Casey K / @account_name_2

02/06/2019 at 03:09PM