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

313 active golfers, 903 entries

Leaderboard (lowest score wins):
15
#241 - Iver HÃ¥konsen / @HakonsenIver

04/23/2019 at 08:18PM

15
#242 - Lusington / @Lusington

04/24/2019 at 06:22PM

15
#243 - Phoon / @justflashhim

05/13/2019 at 12:24AM

15
#244 - YesSwear / @yesswore

05/20/2019 at 02:41PM

15
#245 - cinder 🔥 / @cyndrdev

06/27/2019 at 04:59PM

16
#246 - Mark Havas / @techuntangler

02/04/2019 at 12:38PM

16
#247 - Tijn Schouten / @TijnSchouten

02/06/2019 at 10:50AM

16
#248 - gsvba / @gsvba

03/05/2019 at 01:40PM

16
#249 - Thiago Preischadt / @TPreischadt

07/10/2019 at 02:34AM

16
#250 - pjoe / @pjoe

07/19/2019 at 09:09PM

17
#251 - Shunichi Kanade / @shunkana

02/06/2019 at 01:05PM

17
#252 - Robinson Bernand / @RobynBekouz

02/15/2019 at 02:13PM

17
#253 - Antonio Bayonas / @BayonasAntonio

03/01/2019 at 08:38PM

17
#254 - Nygel Bennett / @nucjellfish

04/02/2019 at 01:30PM

17
#255 - Joel Wanner / @wannerjo

05/07/2019 at 02:00PM

17
#256 - Nils ANDRÉ CHANG / @NilsIRL

05/08/2019 at 10:08PM

17
#257 - Am Jam / @LoneJam

06/07/2019 at 01:30AM

18
#258 - Johnny / @saltydreadbeard

02/08/2019 at 02:11AM

19
#259 - Brady Barten / @bvfbarten

05/08/2019 at 04:26PM

21
#260 - JvdB01 / @JvdB001

05/07/2019 at 10:11PM

22
#261 - Inf Loop / @infl00p

03/24/2019 at 06:47PM

22
#262 - Yegor Myshlyaev / @YegorMy

04/15/2019 at 09:56AM

22
#263 - EliTheCoder / @elithecoder

04/30/2019 at 04:14PM

22
#264 - Lingyu Yi / @LgxLingyu

05/16/2019 at 02:29AM

22
#265 - albalitz / @_albalitz

06/05/2019 at 04:16PM

22
#266 - grace / @grcekh

06/13/2019 at 03:13AM

23
#267 - Mauricio Ariza / @_hell_spawn

01/28/2019 at 10:16PM

23
#268 - Casey K / @account_name_2

02/06/2019 at 03:09PM

23
#269 - Bumazhka / @Bumazhka

02/09/2019 at 10:27AM

23
#270 - tnagai / @tnagai

02/16/2019 at 09:10PM