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

293 active golfers, 849 entries

Leaderboard (lowest score wins):
24
#271 - Rwithik Manoj / @RwithikM

06/07/2019 at 01:50PM

24
#272 - seul / @seul15987381

06/20/2019 at 11:05AM

25
#273 - Ketan Agrawal / @_ketan0_

01/27/2019 at 01:23AM

25
#274 - Fernando Yu / @yufrnd

01/31/2019 at 03:26AM

25
#275 - zac keilholz / @KeilholzZac

02/02/2019 at 09:34PM

25
#276 - a197210 / @peticti

02/06/2019 at 04:35PM

25
#277 - nick sugar / @nicksugar11

02/08/2019 at 12:31AM

25
#278 - dereklouie / @dereklouie4

03/14/2019 at 09:12PM

26
#279 - Жажа / @Gagarin_X

02/08/2019 at 10:49AM

26
#280 - Calvin Fong / @LordyBaka

02/10/2019 at 11:36AM

26
#281 - Danny / @dannywood1976

05/02/2019 at 09:22AM

26
#282 - pommevilla / @pawlrus

06/07/2019 at 09:48PM

27
#283 - Gabriel-Andrew Pollo / @GabrielGuilbert

02/08/2019 at 07:57PM

27
#284 - E / @The_Ejaay

04/03/2019 at 12:36PM

28
#285 - Nick Guo / @NickGuo11

01/30/2019 at 08:05AM

28
#286 - projectDx / @Noritor

02/19/2019 at 11:51AM

29
#287 - $hoot-Pairs / @Shoot_Pairs

01/27/2019 at 01:52PM

31
#288 - Rickard Fransson / @xxRion

02/04/2019 at 11:53AM

32
#289 - 김성현 / @kshyun9023

02/01/2019 at 04:24PM

35
#290 - JonasS / @jonas42s

05/29/2019 at 09:55AM

38
#291 - fucus / @fishlovebanana

02/21/2019 at 07:35AM

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

06/11/2019 at 04:02PM

67
#293 - Alexandre Gomes / @alexgomesdev

02/12/2019 at 12:50PM