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

2715 active golfers, 12472 entries

Leaderboard (lowest score wins):
25
#2371 - Dawn Wang / @WShuguang

08/23/2016 at 08:02AM

25
#2372 - Thiago Belem / @TiuTalk

08/27/2016 at 04:32AM

25
#2373 - Ian van der Linde / @Ian_vdl

09/16/2016 at 04:05PM

25
#2374 - Ryan Jarrett / @texmexas

10/24/2016 at 01:47PM

25
#2375 - Christoph F. Seelus / @cseelus

10/26/2016 at 03:27AM

25
#2376 - Twitter Miral / @achmiral

11/02/2016 at 10:48AM

25
#2377 - Andrew Alexander / @AndrewAlex1992

12/11/2016 at 04:43AM

25
#2378 - Igor Pashnin / @pshnn481

01/03/2017 at 10:53PM

25
#2379 - Raymond Chee / @rchomium

03/04/2017 at 11:23PM

25
#2380 - Kalle Aaltonen / @kalleaaltonen

04/20/2017 at 03:41PM

25
#2381 - Brad Brown / @zoocat

05/07/2017 at 03:57AM

25
#2382 - Daniel Smith / @_Tysonzero

06/20/2017 at 05:12PM

25
#2383 - xyd / @emc2314

07/28/2017 at 06:27AM

25
#2384 - m00t-lab / @M00tL

08/05/2017 at 12:17PM

25
#2385 - Mathias Dahlhaus / @mgdahlhaus

08/27/2017 at 11:10AM

25
#2386 - Evan Relf / @evanrelf

09/17/2017 at 04:50AM

25
#2387 - Sebastian Aburto / @saburto_m

10/01/2017 at 06:46PM

25
#2388 - sehe / @sehetw

10/10/2017 at 12:34PM

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

10/26/2017 at 06:13PM

25
#2390 - joel dodge / @weak_thinker

11/17/2017 at 06:22AM

25
#2391 - Camillott Games / @camillottgames

11/17/2017 at 11:36PM

25
#2392 - Michael Yeh / @hinet60613

12/20/2017 at 05:23AM

25
#2393 - Walter McLallen / @wmclallen

02/02/2018 at 12:21AM

25
#2394 - Austin Ware / @AustinWare17

03/12/2018 at 05:32PM

25
#2395 - JULITE / @JULIPTU

03/20/2018 at 07:38PM

25
#2396 - Anonymous / @Anonymous31658

03/27/2018 at 03:08AM

25
#2397 - Hello Mr Nameless / @HelloB348500

04/14/2018 at 01:34PM

25
#2398 - Dieter Adriaenssens / @dcadriaenssens

04/14/2018 at 08:00PM

25
#2399 - Skidd0 / @mcskidd0

05/03/2018 at 10:44PM

25
#2400 - Pablo Orduna / @OrdunaPablo

05/12/2018 at 03:31PM