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):
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

12
#312 - Leland Paul Kusmer / @lelandpaul

10/22/2020 at 02:42PM

12
#313 - David / @imdavidhwang

11/05/2020 at 02:35AM

12
#314 - moh ayaya / @AyayaMoh

11/06/2020 at 07:30PM

12
#315 - SilviaRodriguez / @Rodrigu3zSilvia

11/08/2020 at 05:49PM

12
#316 - Joseph Simone / @averagejoey2000

11/09/2020 at 10:08PM

12
#317 - Wayne / @lilwayne15561

11/16/2020 at 07:25PM

12
#318 - David Kutschke / @D4KU_

11/16/2020 at 09:06PM

12
#319 - quemeraisc / @quemeraisc

11/20/2020 at 08:17AM

12
#320 - hepebexè / @hepebexe

11/29/2020 at 09:25PM

12
#321 - Neverlandrunner / @neverlandrunner

12/06/2020 at 01:07PM

12
#322 - roudens / @roudens2

12/08/2020 at 05:09AM

12
#323 - Cameron Jones / @Deimyts

12/21/2020 at 05:07PM

12
#324 - Ray Dennis / @raysden

12/23/2020 at 03:32PM

12
#325 - John Doe / @JohnDoe75830353

12/24/2020 at 01:14AM

12
#326 - mjurenka / @mjurenka1

12/26/2020 at 07:31AM

12
#327 - Jung Yeon Park / @park_jungy

01/03/2021 at 08:10PM

12
#328 - Trong Kha Nguyen / @__ngtrongkha

01/04/2021 at 07:14AM

12
#329 - Björn Struckmeier / @BjrnStruckmeie1

01/06/2021 at 02:38PM

12
#330 - A A A / @37fatos

01/09/2021 at 02:58AM