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

635 active golfers, 2072 entries

Leaderboard (lowest score wins):
15
#511 - Filipe Barroso 💙 / @ABarroso

11/19/2020 at 10:40PM

15
#512 - said / @said13664960

12/16/2020 at 12:55PM

15
#513 - Tim Clifford / @Tim19683

04/01/2021 at 05:15PM

16
#514 - Mark Havas / @techuntangler

02/04/2019 at 12:38PM

16
#515 - Tijn Schouten / @TijnSchouten

02/06/2019 at 10:50AM

16
#516 - gsvba / @gsvba

03/05/2019 at 01:40PM

16
#517 - Thiago Preischadt / @TPreischadt

07/10/2019 at 02:34AM

16
#518 - pjoe / @pjoe

07/19/2019 at 09:09PM

17
#519 - Shunichi Kanade / @shunkana

02/06/2019 at 01:05PM

17
#520 - Robinson Bernand / @RobynBekouz

02/15/2019 at 02:13PM

17
#521 - Antonio Bayonas / @BayonasAntonio

03/01/2019 at 08:38PM

17
#522 - Nygel Bennett / @nucjellfish

04/02/2019 at 01:30PM

17
#523 - Joel Wanner / @wannerjo

05/07/2019 at 02:00PM

17
#524 - Nils ANDRÉ CHANG / @NilsIRL

05/08/2019 at 10:08PM

17
#525 - Am Jam / @LoneJam

06/07/2019 at 01:30AM

17
#526 - Pranshu Goyal / @PranshuGoyal

01/16/2021 at 09:24PM

17
#527 - Piers (Ali) Barber / @logicmonkey0

03/06/2021 at 01:27AM

18
#528 - Johnny / @saltydreadbeard

02/08/2019 at 02:11AM

18
#529 - Scott Smith / @Scottaino

12/23/2019 at 02:50AM

19
#530 - Brady Barten / @bvfbarten

05/08/2019 at 04:26PM

19
#531 - Gunnar Thoreson / @ThReGgOn

09/05/2019 at 01:18PM

19
#532 - 임덕윤 / @SnLHUF5ZYJXqI1m

11/18/2019 at 08:25AM

19
#533 - Magnus / @praktiskt

11/22/2019 at 06:39PM

19
#534 - Steve Racanovic / @steve_racanovic

01/12/2020 at 08:45PM

20
#535 - James Rayman / @jamsramen

03/05/2020 at 02:35AM

20
#536 - Neil Earnshaw / @neilearnshaw

05/10/2020 at 05:23PM

20
#537 - mp / @mp28812322

07/17/2020 at 06:43PM

20
#538 - elroylee / @elroylee11

08/22/2020 at 03:19PM

20
#539 - Sergey Yakovlev / @selfuryon

09/25/2020 at 10:36PM

21
#540 - JvdB01 / @JvdB001

05/07/2019 at 10:11PM