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 3577 remaining solutions by signing in and submitting your own entry
#3578 호도르 / @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

3578 active golfers, 17274 entries

Leaderboard (lowest score wins):
21
#2191 - Jed Cua / @jedcua_novare

12/27/2016 at 07:24AM

21
#2192 - Markus Lux / @_l0x_

01/03/2017 at 01:12PM

21
#2193 - Pawel / @pracownikpl

01/17/2017 at 09:32AM

21
#2194 - ZW / @ZW73226885

01/24/2017 at 06:45PM

21
#2195 - Riz Joj / @rizjoj

01/27/2017 at 05:15AM

21
#2196 - Mohd Amin Yuddin / @mohdaminyuddin

02/07/2017 at 04:52AM

21
#2197 - Cù Hữu Hoàng / @Cuhuuhoang

02/14/2017 at 03:08AM

21
#2198 - Julien Pepy / @shin_komuta

02/22/2017 at 04:12PM

21
#2199 - Evgeny Morozov / @Evmorov

02/25/2017 at 09:07PM

21
#2200 - Zack Orndorff / @ZackOrndorff

03/04/2017 at 06:54PM

21
#2201 - Mitchell / @Spitchell

03/16/2017 at 02:55PM

21
#2202 - Andreas Anderbach / @AAnderbach

03/19/2017 at 04:38PM

21
#2203 - Mark Brody / @_markbrody

03/23/2017 at 04:49AM

21
#2204 - ephemient / @ephemient

04/15/2017 at 06:47AM

21
#2205 - claytron / @claytron

04/19/2017 at 12:06AM

21
#2206 - Grumpy Nerd / @grumpy_nerd

04/21/2017 at 11:31AM

21
#2207 - Alexander Albrecht / @AalexxDiddi

04/21/2017 at 08:43PM

21
#2208 - Elliot Brock / @mr_minmax

04/24/2017 at 03:15PM

21
#2209 - brucesnyder / @brucesnyder

05/03/2017 at 08:41PM

21
#2210 - Clement Keirua / @clemkeirua

05/05/2017 at 10:57PM

21
#2211 - Guillem Palou / @guillempalou

05/08/2017 at 03:22PM

21
#2212 - Kyouma / @kyoumaJohn

05/19/2017 at 01:05PM

21
#2213 - Anders Schramm / @AndersSchramm

05/22/2017 at 10:11PM

21
#2214 - Utkrisht Dhankar / @UtkrishtDhankar

05/24/2017 at 10:10AM

21
#2215 - Ryan Coopersmith / @RyanCoopersmit1

06/03/2017 at 02:25PM

21
#2216 - Alpha Beta / @AlphaBe54661044

06/03/2017 at 03:42PM

21
#2217 - WangkeunOh / @owg7689

06/06/2017 at 10:02AM

21
#2218 - Pablo / @suspekt007

06/07/2017 at 03:58AM

21
#2219 - Carl Egbert / @CarlOEgbert

06/09/2017 at 05:42AM

21
#2220 - Scott Mills / @smm1729

06/11/2017 at 07:40PM