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

589 active golfers, 1900 entries

Leaderboard (lowest score wins):
24
#541 - chris barless / @chrisbarless

02/09/2019 at 12:19AM

24
#542 - tapio / @gncnaxb

02/27/2019 at 10:59PM

24
#543 - DanSnow / @dododavid006

03/08/2019 at 05:39AM

24
#544 - Marko Z / @MarkoZ24828260

03/15/2019 at 10:43AM

24
#545 - The Joe / @computerjoe708

03/17/2019 at 04:18PM

24
#546 - Atanas Karamanov / @AtanasKaramanov

03/29/2019 at 11:21AM

24
#547 - p2ni / @p2noc

04/14/2019 at 03:20PM

24
#548 - 김현수 / @flyhigh43

04/27/2019 at 05:23PM

24
#549 - Дима / @dimkino

05/29/2019 at 09:03PM

24
#550 - Cookie4D / @Cookie4D1

06/06/2019 at 09:20PM

24
#551 - Rwithik Manoj / @RwithikM

06/07/2019 at 01:50PM

24
#552 - seul / @seul15987381

06/20/2019 at 11:05AM

24
#553 - Vim Golfer / @VimGolfer6

07/13/2019 at 12:47PM

24
#554 - Clint Caudle / @ClintCaudle

07/22/2019 at 07:21PM

24
#555 - José / @AngelGaldamez

08/26/2019 at 03:28AM

24
#556 - Joe Farnsworth / @JoeFarnsworth

04/01/2020 at 02:26AM

24
#557 - victor / @victor20145300

08/22/2020 at 03:00PM

24
#558 - The Valencian Dev / @thevalenciandev

10/12/2020 at 01:27PM

25
#559 - Ketan Agrawal / @_ketan0_

01/27/2019 at 01:23AM

25
#560 - Fernando Yu / @fernandoyu_

01/31/2019 at 03:26AM

25
#561 - zac keilholz / @KeilholzZac

02/02/2019 at 09:34PM

25
#562 - a197210 / @peticti

02/06/2019 at 04:35PM

25
#563 - nick sugar / @nicksugar11

02/08/2019 at 12:31AM

25
#564 - dereklouie / @dereklouie4

03/14/2019 at 09:12PM

25
#565 - Andrei Popescu / @AndreiTheory

12/09/2019 at 09:07PM

25
#566 - jackmark / @jackmar14540583

07/11/2020 at 07:06AM

26
#567 - Жажа / @Gagarin_X

02/08/2019 at 10:49AM

26
#568 - Calvin Fong / @LordyBaka

02/10/2019 at 11:36AM

26
#569 - Danny / @dannywood1976

05/02/2019 at 09:22AM

26
#570 - pommevilla / @pawlrus

06/07/2019 at 09:48PM