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):
15
#481 - Ved Verma / @dearved

05/31/2020 at 11:31PM

15
#482 - drGsus / @drGsus

07/25/2020 at 01:31PM

15
#483 - dadav 🥀 / @__dadav__

08/01/2020 at 01:21PM

15
#484 - Raphael / @Console64

08/21/2020 at 05:26AM

15
#485 - Ramūnas Musteikis / @RamnasMusteiki1

10/16/2020 at 01:41PM

15
#486 - Yondonjamts / @yondonjamts_g

11/13/2020 at 11:37AM

15
#487 - Filipe Barroso 💙 / @ABarroso

11/19/2020 at 10:40PM

16
#488 - Mark Havas / @techuntangler

02/04/2019 at 12:38PM

16
#489 - Tijn Schouten / @TijnSchouten

02/06/2019 at 10:50AM

16
#490 - gsvba / @gsvba

03/05/2019 at 01:40PM

16
#491 - Thiago Preischadt / @TPreischadt

07/10/2019 at 02:34AM

16
#492 - pjoe / @pjoe

07/19/2019 at 09:09PM

17
#493 - Shunichi Kanade / @shunkana

02/06/2019 at 01:05PM

17
#494 - Robinson Bernand / @RobynBekouz

02/15/2019 at 02:13PM

17
#495 - Antonio Bayonas / @BayonasAntonio

03/01/2019 at 08:38PM

17
#496 - Nygel Bennett / @nucjellfish

04/02/2019 at 01:30PM

17
#497 - Joel Wanner / @wannerjo

05/07/2019 at 02:00PM

17
#498 - Nils ANDRÉ CHANG / @NilsIRL

05/08/2019 at 10:08PM

17
#499 - Am Jam / @LoneJam

06/07/2019 at 01:30AM

18
#500 - Johnny / @saltydreadbeard

02/08/2019 at 02:11AM

18
#501 - Scott Smith / @Scottaino

12/23/2019 at 02:50AM

19
#502 - Brady Barten / @bvfbarten

05/08/2019 at 04:26PM

19
#503 - Gunnar Thoreson / @ThReGgOn

09/05/2019 at 01:18PM

19
#504 - 임덕윤 / @SnLHUF5ZYJXqI1m

11/18/2019 at 08:25AM

19
#505 - Magnus / @praktiskt

11/22/2019 at 06:39PM

19
#506 - Steve Racanovic / @steve_racanovic

01/12/2020 at 08:45PM

20
#507 - James Rayman / @jamsramen

03/05/2020 at 02:35AM

20
#508 - Neil Earnshaw / @neilearnshaw

05/10/2020 at 05:23PM

20
#509 - mp / @mp28812322

07/17/2020 at 06:43PM

20
#510 - elroylee / @elroylee11

08/22/2020 at 03:19PM