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

217 active golfers, 605 entries

Leaderboard (lowest score wins):
17
#181 - Antonio Bayonas / @BayonasAntonio

03/01/2019 at 08:38PM

17
#182 - Nygel Bennett / @nucjellfish

04/02/2019 at 01:30PM

18
#183 - Johnny / @saltydreadbeard

02/08/2019 at 02:11AM

22
#184 - Inf Loop / @infl00p

03/24/2019 at 06:47PM

22
#185 - Yegor Myshlyaev / @YegorMy

04/15/2019 at 09:56AM

23
#186 - Mauricio Ariza / @_hell_spawn

01/28/2019 at 10:16PM

23
#187 - Casey K / @account_name_2

02/06/2019 at 03:09PM

23
#188 - Bumazhka / @Bumazhka

02/09/2019 at 10:27AM

23
#189 - tnagai / @tnagai

02/16/2019 at 09:10PM

23
#190 - Emil Braserud / @Erdustiggen

03/16/2019 at 03:51PM

23
#191 - Banner B. Schafer / @BannerBSchafer

04/08/2019 at 03:32AM

23
#192 - john ford / @johnfor65634499

04/19/2019 at 10:01PM

24
#193 - king of cool / @fyces

01/28/2019 at 02:09PM

24
#194 - chris barless / @chrisbarless

02/09/2019 at 12:19AM

24
#195 - tapio / @gncnaxb

02/27/2019 at 10:59PM

24
#196 - DanSnow / @dododavid006

03/08/2019 at 05:39AM

24
#197 - Marko Z / @MarkoZ24828260

03/15/2019 at 10:43AM

24
#198 - The Joe / @computerjoe708

03/17/2019 at 04:18PM

24
#199 - Atanas Karamanov / @AtanasKaramanov

03/29/2019 at 11:21AM

24
#200 - p2ni / @p2noc

04/14/2019 at 03:20PM

25
#201 - Ketan Agrawal / @_ketan0_

01/27/2019 at 01:23AM

25
#202 - Fernando Yu / @yufrnd

01/31/2019 at 03:26AM

25
#203 - zac keilholz / @KeilholzZac

02/02/2019 at 09:34PM

25
#204 - a197210 / @peticti

02/06/2019 at 04:35PM

25
#205 - nick sugar / @nicksugar11

02/08/2019 at 12:31AM

25
#206 - dereklouie / @dereklouie4

03/14/2019 at 09:12PM

26
#207 - Жажа / @Gagarin_X

02/08/2019 at 10:49AM

26
#208 - Calvin Fong / @LordyBaka

02/10/2019 at 11:36AM

27
#209 - Gabriel-Andrew Pollo / @GabrielGuilbert

02/08/2019 at 07:57PM

27
#210 - E / @The_Ejaay

04/03/2019 at 12:36PM