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 676 remaining solutions by signing in and submitting your own entry
Created by: @tpenguinltg

677 active golfers, 2227 entries

Leaderboard (lowest score wins):
27
#661 - chris bailey / @chrisbailey

12/02/2019 at 02:59AM

27
#662 - Shubham Aggarwal / @agshubh49

01/14/2020 at 09:45AM

28
#663 - Nick Guo / @NickGuo11

01/30/2019 at 08:05AM

28
#664 - projectDx / @Noritor

02/19/2019 at 11:51AM

28
#665 - Aaron / @_Lordofthevoid_

11/23/2019 at 11:29AM

29
#666 - $hoot-Pairs / @Shoot_Pairs

01/27/2019 at 01:52PM

29
#667 - Hung Hoang / @hoanghun5

08/26/2019 at 12:51PM

31
#668 - Rickard Fransson / @xxRion

02/04/2019 at 11:53AM

32
#669 - 김성현 / @kshyun9023

02/01/2019 at 04:24PM

33
#670 - Robin Abrahamsson / @rqAbrahamsson

04/29/2020 at 03:03PM

35
#671 - JonasS / @jonas42s

05/29/2019 at 09:55AM

35
#672 - Daksha Chatur / @DakshaChatur

09/26/2022 at 04:59AM

36
#673 - Nedko Nedkov / @NedkoNedkov6

12/27/2020 at 09:59PM

37
#674 - lzh / @ly_zhng

06/14/2020 at 02:50AM

38
#675 - fucus / @fishlovebanana

02/21/2019 at 07:35AM

44
#676 - duyanh.y4n.pham / @PhamY4n

06/11/2019 at 04:02PM

67
#677 - Alexandre Gomes / @alexgomesdev

02/12/2019 at 12:50PM