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

587 active golfers, 1893 entries

Leaderboard (lowest score wins):
12
#301 - akouryy / @akouryy1

09/15/2020 at 11:28AM

12
#302 - Brendan Schaenzer / @bschaenzer

09/30/2020 at 06:57PM

12
#303 - Ivan Kwong / @IvanKwong5

10/01/2020 at 09:55AM

12
#304 - Gytis Vinclovas / @GytisVinclovas

10/08/2020 at 03:01PM

12
#305 - lamtt77 / @lamtt77

10/09/2020 at 10:15PM

12
#306 - Er St / @ErSt46286501

10/12/2020 at 10:06AM

12
#307 - 𝗙 ▲ 𝗥 𝗜 𝗦 𝗦 / @APsockes

10/12/2020 at 10:46AM

12
#308 - Ravi S Sinha / @ambidextrousTx

10/12/2020 at 11:15PM

12
#309 - AAbraxas / @AAbraxas1

10/14/2020 at 06:19PM

12
#310 - dragonofdeath / @dragonofdeath8

10/16/2020 at 05:29PM

12
#311 - Aleks Kissinger / @AleksKissinger

10/18/2020 at 09:45PM

13
#312 - Gitsnik / @dracyrys

04/25/2019 at 12:41PM

13
#313 - Urquhart #SurrenderBill / @LostUrquhart

05/14/2019 at 08:23PM

13
#314 - Tim Dean / @Tmdean

06/10/2019 at 08:00PM

13
#315 - Hugo Tai / @HugoTai100

06/11/2019 at 05:41AM

13
#316 - hiro_3_1 / @hiroshi160301

06/28/2019 at 09:16AM

13
#317 - hielke / @hielke24840788

07/07/2019 at 11:55AM

13
#318 - mirsemen / @mirsemen1

07/15/2019 at 09:42AM

13
#319 - Peter Demin / @peterdemin

07/29/2019 at 12:47PM

13
#320 - Bob Ren / @bobrenjc93

08/02/2019 at 04:39PM

13
#321 - Hot Take / @hottake69

08/17/2019 at 08:43PM

13
#322 - Adam Hartz / @awareofnow

08/21/2019 at 01:51AM

13
#323 - 波波 / @sbob87

08/26/2019 at 08:49AM

13
#324 - Abner jr / @Abnerjr19

09/15/2019 at 01:53PM

13
#325 - Elizabeth / @sprinkles418

10/18/2019 at 08:00PM

13
#326 - oldandslow / @oldandslow5

11/26/2019 at 07:22PM

13
#327 - David / @dalbertom

12/01/2019 at 08:07PM

13
#328 - 990 / @nisibasi990

12/07/2019 at 12:27PM

13
#329 - JimmyGymglish / @JGymglish

01/06/2020 at 03:02PM

13
#330 - nicosierra / @nicosierra84

01/09/2020 at 10:36PM