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

3768 active golfers, 18278 entries

Leaderboard (lowest score wins):
25
#3211 - David Bjergaard / @dbjergaard

05/03/2016 at 08:25PM

25
#3212 - Ian Malerich / @IMalerich

05/03/2016 at 09:20PM

25
#3213 - 李超 / @lichaorodxx

06/10/2016 at 06:12PM

25
#3214 - Laurion Burchall / @laurionb

06/28/2016 at 10:40PM

25
#3215 - Dan Madden / @guthran

07/14/2016 at 07:19PM

25
#3216 - Nota Fool / @f970823

07/26/2016 at 05:37PM

25
#3217 - Yesq / @yesq

08/19/2016 at 07:21AM

25
#3218 - Cnetwork / @WShuguang

08/23/2016 at 08:02AM

25
#3219 - Thiago Belem / @TiuTalk

08/27/2016 at 04:32AM

25
#3220 - Ian van der Linde / @Ian_vdl

09/16/2016 at 04:05PM

25
#3221 - Ryan Jarrett / @texmexas

10/24/2016 at 01:47PM

25
#3222 - Christoph F. Seelus / @cseelus

10/26/2016 at 03:27AM

25
#3223 - Twitter Miral / @achmiral

11/02/2016 at 10:48AM

25
#3224 - Andrew Alexander / @AndrewAlex1992

12/11/2016 at 04:43AM

25
#3225 - Igor Pashnin / @pshnn481

01/03/2017 at 10:53PM

25
#3226 - Raymond Chee / @rchomium

03/04/2017 at 11:23PM

25
#3227 - Kalle Aaltonen / @kalleaaltonen

04/20/2017 at 03:41PM

25
#3228 - Brad Brown / @zoocat

05/07/2017 at 03:57AM

25
#3229 - Daniel Smith / @_Tysonzero

06/20/2017 at 05:12PM

25
#3230 - xyd / @emc2314

07/28/2017 at 06:27AM

25
#3231 - m00t-lab / @M00tL

08/05/2017 at 12:17PM

25
#3232 - Mathias Dahlhaus / @mgdahlhaus

08/27/2017 at 11:10AM

25
#3233 - Evan Relf / @evanrelf

09/17/2017 at 04:50AM

25
#3234 - Sebastian Aburto / @saburto_m

10/01/2017 at 06:46PM

25
#3235 - sehe / @sehetw

10/10/2017 at 12:34PM

25
#3236 - Jorge F. Guerra P. / @JEFE00

10/26/2017 at 06:13PM

25
#3237 - joel dodge / @weak_thinker

11/17/2017 at 06:22AM

25
#3238 - Camillott Games / @camillottgames

11/17/2017 at 11:36PM

25
#3239 - Michael Yeh / @hinet60613

12/20/2017 at 05:23AM

25
#3240 - Walter McLallen / @wmclallen

02/02/2018 at 12:21AM