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

345 active golfers, 1011 entries

Leaderboard (lowest score wins):
26
#331 - Calvin Fong / @LordyBaka

02/10/2019 at 11:36AM

26
#332 - Danny / @dannywood1976

05/02/2019 at 09:22AM

26
#333 - pommevilla / @pawlrus

06/07/2019 at 09:48PM

26
#334 - Nathan Knox / @the_nathan_knox

07/11/2019 at 06:30PM

27
#335 - Gabriel-Andrew Pollo / @GabrielGuilbert

02/08/2019 at 07:57PM

27
#336 - E / @The_Ejaay

04/03/2019 at 12:36PM

28
#337 - Nick Guo / @NickGuo11

01/30/2019 at 08:05AM

28
#338 - projectDx / @Noritor

02/19/2019 at 11:51AM

29
#339 - $hoot-Pairs / @Shoot_Pairs

01/27/2019 at 01:52PM

31
#340 - Rickard Fransson / @xxRion

02/04/2019 at 11:53AM

32
#341 - 김성현 / @kshyun9023

02/01/2019 at 04:24PM

35
#342 - JonasS / @jonas42s

05/29/2019 at 09:55AM

38
#343 - fucus / @fishlovebanana

02/21/2019 at 07:35AM

44
#344 - duyanh.y4n.pham / @PhamY4n

06/11/2019 at 04:02PM

67
#345 - Alexandre Gomes / @alexgomesdev

02/12/2019 at 12:50PM