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

532 active golfers, 1702 entries

Leaderboard (lowest score wins):
12
#211 - shota_ogswr / @shota_ogasawara

11/26/2019 at 02:35PM

12
#212 - Matt Aschmann / @ma7hatter

11/27/2019 at 05:51PM

12
#213 - Marc Päpper / @mpaepper

11/27/2019 at 09:25PM

12
#214 - bruno cunha / @bruiserwins

11/29/2019 at 11:54PM

12
#215 - antoine mas / @aneomas

11/30/2019 at 05:37PM

12
#216 - Robert / @pepzit

12/01/2019 at 06:20PM

12
#217 - Jonathan Jeffrey / @projjects

12/05/2019 at 05:14AM

12
#218 - ErQ325 / @EQ325

12/05/2019 at 04:18PM

12
#219 - ちくあな / @navcw

12/06/2019 at 03:19PM

12
#220 - Nicolas Pagny / @NicolasPagny

12/06/2019 at 04:33PM

12
#221 - Chris Dean / @ChrisDe62379742

12/14/2019 at 07:17AM

12
#222 - Dan Kilman / @dan_kilman

12/19/2019 at 01:18PM

12
#223 - James Casey / @hanavi

12/21/2019 at 04:38AM

12
#224 - Jason Neylon / @jasonneylon

12/21/2019 at 09:24AM

12
#225 - Delon / @delonleonard

12/25/2019 at 06:18AM

12
#226 - zqi / @zq11110320

12/27/2019 at 06:03AM

12
#227 - Ralph Callaway / @RalphAtCCC

01/03/2020 at 05:24AM

12
#228 - hokonch / @hokonch

01/04/2020 at 06:14PM

12
#229 - Alex Bartol / @alexbartol

01/09/2020 at 07:40PM

12
#230 - caffeineism / @caffeineism

01/10/2020 at 05:51PM

12
#231 - mowglian / @mowglian

01/11/2020 at 11:22PM

12
#232 - lev / @nouvelliu

01/16/2020 at 01:55AM

12
#233 - Karnival K / @K4rnival

01/18/2020 at 04:46PM

12
#234 - Jean-Francois Parent / @hacker_pyrat

01/19/2020 at 03:17AM

12
#235 - beew71493 / @beew71493

01/21/2020 at 02:48AM

12
#236 - Michael Meixner / @meixner62

01/22/2020 at 04:57PM

12
#237 - Rune Warhuus / @DinkDonkNorway

01/22/2020 at 10:03PM

12
#238 - Kyle X. Clark / @KyXr_Clark

01/27/2020 at 02:12AM

12
#239 - Oleg / @colega

01/28/2020 at 10:31PM

12
#240 - nico S / @der_nico_93

01/30/2020 at 02:06PM