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

393 active golfers, 1191 entries

Leaderboard (lowest score wins):
14
#271 - wanghbxxxx / @wanghbxxxx

04/02/2019 at 02:32AM

14
#272 - GS / @GSijmens

04/05/2019 at 11:08PM

14
#273 - Michał Łowicki / @mlowicki

04/12/2019 at 01:11PM

14
#274 - Laurent Atlan / @laurentatlan1

04/14/2019 at 07:12PM

14
#275 - Norbert / @mullno

04/16/2019 at 04:28PM

14
#276 - 이종혁 / @BluePaisa

04/17/2019 at 09:03AM

14
#277 - Pratik / @prathik_t

04/18/2019 at 07:59AM

14
#278 - Fredrik Bjerkås / @fbjerkas

04/22/2019 at 12:44AM

14
#279 - Izaak van Dongen / @goedel_gang

04/27/2019 at 11:40PM

14
#280 - Daniel Hakimian / @danrafhak

05/15/2019 at 04:32AM

14
#281 - Καράτε Μόνο / @karate_mono

05/15/2019 at 12:27PM

14
#282 - Arno / @arnoxmp

05/16/2019 at 10:23AM

14
#283 - Edan Sneh / @edan_sneh

06/04/2019 at 07:45AM

14
#284 - mark / @feltnermj

06/07/2019 at 06:16PM

14
#285 - garry quested / @GQuested

07/08/2019 at 10:57AM

14
#286 - Crystal L / @Cartsly

07/13/2019 at 09:09PM

14
#287 - Matt Vaughn / @mattttvaughn

07/29/2019 at 01:29AM

14
#288 - ぽんぽこ / @ponpoko2342

08/01/2019 at 12:13PM

14
#289 - Ivo Blöchliger / @aigledesalpes

08/02/2019 at 06:22PM

14
#290 - Jonathan Browning / @yungjig90

08/02/2019 at 06:50PM

14
#291 - Mr_Djez / @DjezMr

08/05/2019 at 08:50PM

14
#292 - Simon Wilkinson / @simondwilkinson

08/24/2019 at 02:20PM

14
#293 - ciela / @lededex

08/28/2019 at 05:33PM

14
#294 - Ariel Miculas / @ArielMiculas

09/18/2019 at 04:56PM

15
#295 - Cory Knapp / @coryknapp

01/27/2019 at 01:29AM

15
#296 - Sachet Mittal / @MittalSachet

01/27/2019 at 07:37AM

15
#297 - Miki Tebeka / @tebeka

01/27/2019 at 08:03AM

15
#298 - Rajit Singh / @rajitbsingh

01/30/2019 at 10:31AM

15
#299 - Bob_V / @Bob_V

01/30/2019 at 01:21PM

15
#300 - Colby Brown / @colbyabrown

02/11/2019 at 04:45AM