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

618 active golfers, 2017 entries

Leaderboard (lowest score wins):
22
#541 - albalitz / @_albalitz

06/05/2019 at 04:16PM

22
#542 - g̵̨̛̺̝̮̋͆̅͝r̶̦͗̐̓̉a̵͉͋̎c̵̺͉̉͝e̴͙̘͎͚̹̳͛̀͂͆̂ / @___grce

06/13/2019 at 03:13AM

22
#543 - Lion de Bell / @CLGBamboo

11/30/2019 at 11:44PM

22
#544 - 鏡崎ましろ / @KagamisakiMsr

01/27/2020 at 07:15AM

22
#545 - samet ぷ / @jssamet

02/01/2020 at 05:19PM

22
#546 - Alvaro Melendez / @alvaromelendezh

02/21/2020 at 03:12PM

22
#547 - David Bragmark / @DBragmark

04/29/2020 at 03:27PM

22
#548 - vito / @vito49999722

08/01/2020 at 08:22AM

23
#549 - Mauricio Ariza / @_hell_spawn

01/28/2019 at 10:16PM

23
#550 - Casey K / @account_name_2

02/06/2019 at 03:09PM

23
#551 - Bumazhka / @Bumazhka

02/09/2019 at 10:27AM

23
#552 - tnagai / @tnagai

02/16/2019 at 09:10PM

23
#553 - Emil Braserud / @Erdustiggen

03/16/2019 at 03:51PM

23
#554 - Banner B. Schafer / @BannerBSchafer

04/08/2019 at 03:32AM

23
#555 - john ford / @johnfor65634499

04/19/2019 at 10:01PM

23
#556 - Matthias Kausl / @sig_segv

04/25/2019 at 06:09PM

23
#557 - vimgolfer24271 / @vimgolfer24271

05/12/2019 at 05:13PM

23
#558 - Corey Alexander / @coreyja_dev

06/27/2019 at 03:12AM

23
#559 - Florent Uguet / @FlorentUguet

07/10/2019 at 09:49AM

23
#560 - Fred Leclerc / @fredleclerc

07/24/2019 at 09:24PM

23
#561 - Pittson / @Pittson95

07/31/2019 at 07:18PM

23
#562 - Kjaku / @Kondziorf

09/07/2019 at 09:15PM

23
#563 - Jake Nixon / @thejakenixon

09/30/2019 at 05:51PM

23
#564 - Alex / @heliophobicdude

04/16/2020 at 09:59PM

23
#565 - Christ / @Christ46234422

09/08/2020 at 02:58AM

23
#566 - kafang plays vimgolf / @KafangV

12/28/2020 at 12:54PM

23
#567 - Kapildev Neupane / @KapildevNeupane

01/01/2021 at 03:27PM

24
#568 - king of cool / @fyces

01/28/2019 at 02:09PM

24
#569 - chris barless / @chrisbarless

02/09/2019 at 12:19AM

24
#570 - tapio / @gncnaxb

02/27/2019 at 10:59PM