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

602 active golfers, 1948 entries

Leaderboard (lowest score wins):
24
#571 - The Valencian Dev / @thevalenciandev

10/12/2020 at 01:27PM

25
#572 - Ketan Agrawal / @_ketan0_

01/27/2019 at 01:23AM

25
#573 - Fernando Yu / @fernandoyu_

01/31/2019 at 03:26AM

25
#574 - zac keilholz / @KeilholzZac

02/02/2019 at 09:34PM

25
#575 - a197210 / @peticti

02/06/2019 at 04:35PM

25
#576 - nick sugar / @nicksugar11

02/08/2019 at 12:31AM

25
#577 - dereklouie / @dereklouie4

03/14/2019 at 09:12PM

25
#578 - Andrei Popescu / @AndreiTheory

12/09/2019 at 09:07PM

25
#579 - jackmark / @jackmar14540583

07/11/2020 at 07:06AM

26
#580 - Жажа / @Gagarin_X

02/08/2019 at 10:49AM

26
#581 - Calvin Fong / @LordyBaka

02/10/2019 at 11:36AM

26
#582 - Danny / @dannywood1976

05/02/2019 at 09:22AM

26
#583 - pommevilla / @pawlrus

06/07/2019 at 09:48PM

26
#584 - Nathan Knox / @the_nathan_knox

07/11/2019 at 06:30PM

27
#585 - Gabriel-Andrew Pollo / @GabrielGuilbert

02/08/2019 at 07:57PM

27
#586 - E / @The_Ejaay

04/03/2019 at 12:36PM

27
#587 - Iggy / @iggredible

09/05/2019 at 02:56AM

27
#588 - chris bailey / @chrisbailey

12/02/2019 at 02:59AM

27
#589 - Shubham Aggarwal / @agshubh49

01/14/2020 at 09:45AM

28
#590 - Nick Guo / @NickGuo11

01/30/2019 at 08:05AM

28
#591 - projectDx / @Noritor

02/19/2019 at 11:51AM

28
#592 - Aaron / @_Lordofthevoid_

11/23/2019 at 11:29AM

29
#593 - $hoot-Pairs / @Shoot_Pairs

01/27/2019 at 01:52PM

29
#594 - Hung Hoang / @hoanghun5

08/26/2019 at 12:51PM

31
#595 - Rickard Fransson / @xxRion

02/04/2019 at 11:53AM

32
#596 - 김성현 / @kshyun9023

02/01/2019 at 04:24PM

33
#597 - Robin Abrahamsson / @rqAbrahamsson

04/29/2020 at 03:03PM

35
#598 - JonasS / @jonas42s

05/29/2019 at 09:55AM

37
#599 - lzh / @ly_zhng

06/14/2020 at 02:50AM

38
#600 - fucus / @fishlovebanana

02/21/2019 at 07:35AM