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

532 active golfers, 1702 entries

Leaderboard (lowest score wins):
15
#421 - André Reigoto / @AndreReigoto

08/11/2019 at 03:33AM

15
#422 - rr / @rodgeur31

10/25/2019 at 10:50PM

15
#423 - Marten Ringwelski / @Marteon27

12/07/2019 at 07:22PM

15
#424 - Bitt Faulk / @bittfaulk

03/02/2020 at 10:23PM

15
#425 - Ali Aslan / @AliAsla95742367

05/04/2020 at 04:57AM

15
#426 - Mack Hutsell / @HutsellMack

05/24/2020 at 07:34PM

16
#427 - Mark Havas / @techuntangler

02/04/2019 at 12:38PM

16
#428 - Tijn Schouten / @TijnSchouten

02/06/2019 at 10:50AM

16
#429 - gsvba / @gsvba

03/05/2019 at 01:40PM

16
#430 - Thiago Preischadt / @TPreischadt

07/10/2019 at 02:34AM

16
#431 - pjoe / @pjoe

07/19/2019 at 09:09PM

17
#432 - Shunichi Kanade / @shunkana

02/06/2019 at 01:05PM

17
#433 - Robinson Bernand / @RobynBekouz

02/15/2019 at 02:13PM

17
#434 - Antonio Bayonas / @BayonasAntonio

03/01/2019 at 08:38PM

17
#435 - Nygel Bennett / @nucjellfish

04/02/2019 at 01:30PM

17
#436 - Joel Wanner / @wannerjo

05/07/2019 at 02:00PM

17
#437 - Nils ANDRÉ CHANG / @NilsIRL

05/08/2019 at 10:08PM

17
#438 - Am Jam / @LoneJam

06/07/2019 at 01:30AM

18
#439 - Johnny / @saltydreadbeard

02/08/2019 at 02:11AM

18
#440 - Scott Smith / @Scottaino

12/23/2019 at 02:50AM

19
#441 - Brady Barten / @bvfbarten

05/08/2019 at 04:26PM

19
#442 - Gunnar Thoreson / @ThReGgOn

09/05/2019 at 01:18PM

19
#443 - 임덕윤 / @SnLHUF5ZYJXqI1m

11/18/2019 at 08:25AM

19
#444 - Magnus / @praktiskt

11/22/2019 at 06:39PM

19
#445 - Steve Racanovic / @steve_racanovic

01/12/2020 at 08:45PM

20
#446 - James Rayman / @jamsramen

03/05/2020 at 02:35AM

20
#447 - Neil Earnshaw / @neilearnshaw

05/10/2020 at 05:23PM

21
#448 - JvdB01 / @JvdB001

05/07/2019 at 10:11PM

21
#449 - Viktor Fukala / @FukalaViktor

07/30/2019 at 01:30PM

21
#450 - Masi Valkonen / @masivalkonen

08/28/2019 at 06:27AM