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

634 active golfers, 2071 entries

Leaderboard (lowest score wins):
12
#331 - 蔡徐坤真是爱吃屎 / @Hashub7

01/21/2021 at 03:27PM

12
#332 - Andreas Siegrist / @andreaszwei

01/21/2021 at 09:39PM

12
#333 - zapakh / @zapakh

01/22/2021 at 12:15AM

12
#334 - m397 / @m39752809546

05/11/2021 at 06:03PM

12
#335 - vim_maxter / @MaxterVim

07/01/2021 at 09:54AM

12
#336 - pikjes / @pikjes2

07/15/2021 at 04:06PM

12
#337 - Riley Bryant / @RileyBryant

07/31/2021 at 03:41AM

12
#338 - Michel Viktor / @tomkpz

08/10/2021 at 04:12PM

12
#339 - Jean George / @JeanGeo20504212

09/07/2021 at 12:12PM

13
#340 - Gitsnik / @dracyrys

04/25/2019 at 12:41PM

13
#341 - Urquhart #SurrenderBill / @LostUrquhart

05/14/2019 at 08:23PM

13
#342 - Tim Dean / @Tmdean

06/10/2019 at 08:00PM

13
#343 - Hugo Tai / @HugoTai100

06/11/2019 at 05:41AM

13
#344 - hiro_3_1 / @hiroshi160301

06/28/2019 at 09:16AM

13
#345 - hielke / @hielke24840788

07/07/2019 at 11:55AM

13
#346 - mirsemen / @mirsemen1

07/15/2019 at 09:42AM

13
#347 - Peter Demin / @peterdemin

07/29/2019 at 12:47PM

13
#348 - Bob Ren / @bobrenjc93

08/02/2019 at 04:39PM

13
#349 - Hot Take / @hottake69

08/17/2019 at 08:43PM

13
#350 - Adam Hartz / @awareofnow

08/21/2019 at 01:51AM

13
#351 - 波波 / @sbob87

08/26/2019 at 08:49AM

13
#352 - Abner jr / @Abnerjr19

09/15/2019 at 01:53PM

13
#353 - Elizabeth / @sprinkles418

10/18/2019 at 08:00PM

13
#354 - oldandslow / @oldandslow5

11/26/2019 at 07:22PM

13
#355 - David / @dalbertom

12/01/2019 at 08:07PM

13
#356 - 990 / @nisibasi990

12/07/2019 at 12:27PM

13
#357 - JimmyGymglish / @JGymglish

01/06/2020 at 03:02PM

13
#358 - nicosierra / @nicosierra84

01/09/2020 at 10:36PM

13
#359 - Falafel Palapel / @falafelpalapel

02/16/2020 at 10:06AM

13
#360 - iBhagwan / @iiBhagwan

05/11/2020 at 08:56AM