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 56fb2e75ccffcc0009026473

One number per line

Just give me the numbers.

Start file
- One number per line -
-----------------------
2,3,5,7,
11,13,17,
19,23,29,
End file
2
3
5
7
11
13
17
19
23
29

View Diff

Your target is 14. I don't think this one will last 24 hours. :)

Hopefully it's a good addition to the challenge set though. Enjoy.

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 3068 remaining solutions by signing in and submitting your own entry
#3069 호도르 / @5jhDIioJ2FEnDbB - Score: 327 - 07/26/18 @ 06:28
dfd<Esc>kjkd2dlhlx<CR>ku:norm ax<Esc><Esc>kjkxi<CR><Esc>.uuua<BS><CR><Esc>.uuuuuud2<Esc><Esc><Esc><Esc>d2d<Esc><Esc><Esc>jkl:%s <BS>/,/\n/g<BS><BS><BS><BS>\ <BS>n/g<CR>u<Esc><Esc><Esc><Esc>:%s /,/\\n/g<CR>ukjlklhkjk:%s /,/\<BS><CR>/g<CR>u:<Up><Left><Left><Left><BS><BS>cr<CR><Esc>ukjlk:<Up><Left><Left><Left>:<BS><Right><Right><Right><BS><BS><BS><BS><BS><BS>\s/g<BS><BS><BS><BS>/g<BS><BS>\r/g<CR>u<Up><Up><Up><Up>:<Up><CR>u<Esc>llllllllggjkluuuuuuudj<Esc>ud22d<Esc>uud2d<Esc>l:%s/,/[<BS>\r/g<CR>:g ^$<BS>$<Esc>uu<C-R><Esc><Esc>:5<BS>%s /.<BS>,/\g<BS>r/g<cr><BS><BS><BS>CR><CR><Up>:<Up><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS>:<Up><BS><BS><BS><BS><CR>:g<BS> <BS>g /^$/g<BS>dd/<BS><BS><CR>ZZ

0 comments


Created by: @udioica

3069 active golfers, 14430 entries

Leaderboard (lowest score wins):
22
#2191 - Eric Moss / @NotEricMoss

11/03/2018 at 04:54AM

22
#2192 - ✖❎✖𝔩'𝔒𝔩𝔦𝔳𝔢✖❎✖ / @olivschwab

11/06/2018 at 02:02PM

22
#2193 - Fabio Branquinho / @branquif

11/08/2018 at 10:59AM

22
#2194 - peter.xiao / @yoco315

11/09/2018 at 10:20AM

22
#2195 - Sören Schellhoff / @Jackokomm

11/18/2018 at 03:14PM

22
#2196 - Gary Wild / @amande_pistache

11/19/2018 at 10:12PM

22
#2197 - Performa / @performa6400

11/27/2018 at 05:19PM

22
#2198 - Brian Donovan / @eventualbuddha

11/29/2018 at 04:21PM

22
#2199 - Shafiq Jetha / @sjetha

12/13/2018 at 10:54PM

22
#2200 - Vending Machine / @storyn26383

12/16/2018 at 06:53AM

22
#2201 - サボテン / @gen22334

12/19/2018 at 05:29PM

22
#2202 - Nate / @natedoran

01/06/2019 at 05:47AM

22
#2203 - hbdgr / @t_hbdgr

01/13/2019 at 09:27PM

22
#2204 - pirkes / @gPirkes

01/16/2019 at 01:43PM

22
#2205 - Blah Blah / @BlahBla08410389

01/19/2019 at 04:55PM

22
#2206 - 강현 / @Applesquiz

01/20/2019 at 04:27PM

22
#2207 - drswaghawk / @drswaghawk

01/20/2019 at 11:51PM

22
#2208 - 默罕默德 / @Rt6RjEAJ987Woes

01/21/2019 at 01:10PM

22
#2209 - Michael Aquilina / @mikeaquilina4

01/27/2019 at 10:21PM

22
#2210 - omahn / @omahn

02/08/2019 at 10:10PM

22
#2211 - cubemike / @cubemike

03/22/2019 at 03:55PM

22
#2212 - Nicolas Daval / @ndaval

04/07/2019 at 05:00PM

22
#2213 - Abe Cede / @A_be_Cede

04/12/2019 at 09:01AM

22
#2214 - Roman Vrublevskiy / @R0manza

04/23/2019 at 10:20PM

22
#2215 - JvdB01 / @JvdB001

05/08/2019 at 05:32PM

22
#2216 - Καράτε Μόνο / @karate_mono

05/10/2019 at 06:51PM

22
#2217 - TheMagzuz / @DamMarkus

05/14/2019 at 01:00PM

22
#2218 - dtjong / @dtjong2

06/07/2019 at 06:41PM

22
#2219 - alaric27 / @alaric273

07/11/2019 at 08:44AM

22
#2220 - Sean Sullivan / @_seanyneutron

07/11/2019 at 06:26PM