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):
23
#481 - Florent Uguet / @FlorentUguet

07/10/2019 at 09:49AM

23
#482 - Fred Leclerc / @fredleclerc

07/24/2019 at 09:24PM

23
#483 - Pittson / @Pittson95

07/31/2019 at 07:18PM

23
#484 - Kjaku / @Kondziorf

09/07/2019 at 09:15PM

23
#485 - Jake Nixon / @thejakenixon

09/30/2019 at 05:51PM

23
#486 - Alex / @heliophobicdude

04/16/2020 at 09:59PM

24
#487 - king of cool / @fyces

01/28/2019 at 02:09PM

24
#488 - chris barless / @chrisbarless

02/09/2019 at 12:19AM

24
#489 - tapio / @gncnaxb

02/27/2019 at 10:59PM

24
#490 - DanSnow / @dododavid006

03/08/2019 at 05:39AM

24
#491 - Marko Z / @MarkoZ24828260

03/15/2019 at 10:43AM

24
#492 - The Joe / @computerjoe708

03/17/2019 at 04:18PM

24
#493 - Atanas Karamanov / @AtanasKaramanov

03/29/2019 at 11:21AM

24
#494 - p2ni / @p2noc

04/14/2019 at 03:20PM

24
#495 - 김현수 / @flyhigh43

04/27/2019 at 05:23PM

24
#496 - Дима / @dimkino

05/29/2019 at 09:03PM

24
#497 - Cookie4D / @Cookie4D1

06/06/2019 at 09:20PM

24
#498 - Rwithik Manoj / @RwithikM

06/07/2019 at 01:50PM

24
#499 - seul / @seul15987381

06/20/2019 at 11:05AM

24
#500 - Vim Golfer / @VimGolfer6

07/13/2019 at 12:47PM

24
#501 - Clint Caudle / @ClintCaudle

07/22/2019 at 07:21PM

24
#502 - José / @AngelGaldamez

08/26/2019 at 03:28AM

24
#503 - Joe Farnsworth / @JoeFarnsworth

04/01/2020 at 02:26AM

25
#504 - Ketan Agrawal / @_ketan0_

01/27/2019 at 01:23AM

25
#505 - Fernando Yu / @fernandoyu_

01/31/2019 at 03:26AM

25
#506 - zac keilholz / @KeilholzZac

02/02/2019 at 09:34PM

25
#507 - a197210 / @peticti

02/06/2019 at 04:35PM

25
#508 - nick sugar / @nicksugar11

02/08/2019 at 12:31AM

25
#509 - dereklouie / @dereklouie4

03/14/2019 at 09:12PM

25
#510 - Andrei Popescu / @AndreiTheory

12/09/2019 at 09:07PM