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):
15
#451 - Flo / @RealFFJB

08/08/2019 at 11:29AM

15
#452 - André Reigoto / @AndreReigoto

08/11/2019 at 03:33AM

15
#453 - rr / @rodgeur31

10/25/2019 at 10:50PM

15
#454 - Marten Ringwelski / @Marteon27

12/07/2019 at 07:22PM

15
#455 - Bitt Faulk / @bittfaulk

03/02/2020 at 10:23PM

15
#456 - Ali Aslan / @AliAsla95742367

05/04/2020 at 04:57AM

15
#457 - Mack Hutsell / @sellshuts

05/24/2020 at 07:34PM

15
#458 - RockerZZY / @rocker_zzy

05/31/2020 at 03:57AM

15
#459 - Ved Verma / @dearved

05/31/2020 at 11:31PM

15
#460 - drGsus / @drGsus

07/25/2020 at 01:31PM

15
#461 - dadav 🥀 / @__dadav__

08/01/2020 at 01:21PM

15
#462 - Raphael / @Console64

08/21/2020 at 05:26AM

16
#463 - Mark Havas / @techuntangler

02/04/2019 at 12:38PM

16
#464 - Tijn Schouten / @TijnSchouten

02/06/2019 at 10:50AM

16
#465 - gsvba / @gsvba

03/05/2019 at 01:40PM

16
#466 - Thiago Preischadt / @TPreischadt

07/10/2019 at 02:34AM

16
#467 - pjoe / @pjoe

07/19/2019 at 09:09PM

17
#468 - Shunichi Kanade / @shunkana

02/06/2019 at 01:05PM

17
#469 - Robinson Bernand / @RobynBekouz

02/15/2019 at 02:13PM

17
#470 - Antonio Bayonas / @BayonasAntonio

03/01/2019 at 08:38PM

17
#471 - Nygel Bennett / @nucjellfish

04/02/2019 at 01:30PM

17
#472 - Joel Wanner / @wannerjo

05/07/2019 at 02:00PM

17
#473 - Nils ANDRÉ CHANG / @NilsIRL

05/08/2019 at 10:08PM

17
#474 - Am Jam / @LoneJam

06/07/2019 at 01:30AM

18
#475 - Johnny / @saltydreadbeard

02/08/2019 at 02:11AM

18
#476 - Scott Smith / @Scottaino

12/23/2019 at 02:50AM

19
#477 - Brady Barten / @bvfbarten

05/08/2019 at 04:26PM

19
#478 - Gunnar Thoreson / @ThReGgOn

09/05/2019 at 01:18PM

19
#479 - 임덕윤 / @SnLHUF5ZYJXqI1m

11/18/2019 at 08:25AM

19
#480 - Magnus / @praktiskt

11/22/2019 at 06:39PM