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

556 active golfers, 1789 entries

Leaderboard (lowest score wins):
27
#541 - Iggy / @iggredible

09/05/2019 at 02:56AM

27
#542 - chris bailey / @chrisbailey

12/02/2019 at 02:59AM

27
#543 - Shubham Aggarwal / @agshubh49

01/14/2020 at 09:45AM

28
#544 - Nick Guo / @NickGuo11

01/30/2019 at 08:05AM

28
#545 - projectDx / @Noritor

02/19/2019 at 11:51AM

28
#546 - Aaron / @_Lordofthevoid_

11/23/2019 at 11:29AM

29
#547 - $hoot-Pairs / @Shoot_Pairs

01/27/2019 at 01:52PM

29
#548 - Hung Hoang / @hoanghun5

08/26/2019 at 12:51PM

31
#549 - Rickard Fransson / @xxRion

02/04/2019 at 11:53AM

32
#550 - 김성현 / @kshyun9023

02/01/2019 at 04:24PM

33
#551 - Robin Abrahamsson / @rqAbrahamsson

04/29/2020 at 03:03PM

35
#552 - JonasS / @jonas42s

05/29/2019 at 09:55AM

37
#553 - lzh / @ly_zhng

06/14/2020 at 02:50AM

38
#554 - fucus / @fishlovebanana

02/21/2019 at 07:35AM

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

06/11/2019 at 04:02PM

67
#556 - Alexandre Gomes / @alexgomesdev

02/12/2019 at 12:50PM