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

2705 active golfers, 12428 entries

Leaderboard (lowest score wins):
24
#2341 - Parsa Amini / @ParsaAmini

03/16/2019 at 07:03PM

24
#2342 - 임하정 / @m9XhkZL9XpMgt47

03/24/2019 at 01:07PM

24
#2343 - ____ / @davidmuzzy

04/08/2019 at 09:23AM

24
#2344 - Andrius Bentkus / @andriusbentkus

04/11/2019 at 09:02AM

24
#2345 - Lewis Guignard / @LewisGuignard

04/15/2019 at 04:35AM

24
#2346 - パコ タコ (Nassty) / @elnassto

04/22/2019 at 03:26PM

24
#2347 - Mick van der Vegt / @mickvdv

05/17/2019 at 02:13PM

24
#2348 - Leiser Fernández / @leiserfg

05/17/2019 at 03:20PM

24
#2349 - JonasS / @jonas42s

05/30/2019 at 09:37AM

24
#2350 - a60068 / @a60068

06/05/2019 at 01:22PM

24
#2351 - grace / @grcekh

06/13/2019 at 01:57AM

25
#2352 - jb M / @Jiboo_hey

04/21/2016 at 03:04PM

25
#2353 - alekseiKO / @alekseiKO

04/26/2016 at 04:21PM

25
#2354 - David Bjergaard / @dbjergaard

05/03/2016 at 08:25PM

25
#2355 - Ian Malerich / @IMalerich

05/03/2016 at 09:20PM

25
#2356 - 李超 / @lichaorodxx

06/10/2016 at 06:12PM

25
#2357 - Laurion Burchall / @laurionb

06/28/2016 at 10:40PM

25
#2358 - Dan Madden / @guthran

07/14/2016 at 07:19PM

25
#2359 - Nota Fool / @f970823

07/26/2016 at 05:37PM

25
#2360 - Yesq / @yesq

08/19/2016 at 07:21AM

25
#2361 - Dawn Wang / @WShuguang

08/23/2016 at 08:02AM

25
#2362 - Thiago Belem / @TiuTalk

08/27/2016 at 04:32AM

25
#2363 - Ian van der Linde / @Ian_vdl

09/16/2016 at 04:05PM

25
#2364 - Ryan Jarrett / @texmexas

10/24/2016 at 01:47PM

25
#2365 - Christoph F. Seelus / @cseelus

10/26/2016 at 03:27AM

25
#2366 - Twitter Miral / @achmiral

11/02/2016 at 10:48AM

25
#2367 - Andrew Alexander / @AndrewAlex1992

12/11/2016 at 04:43AM

25
#2368 - Igor Pashnin / @pshnn481

01/03/2017 at 10:53PM

25
#2369 - Raymond Chee / @rchomium

03/04/2017 at 11:23PM

25
#2370 - Kalle Aaltonen / @kalleaaltonen

04/20/2017 at 03:41PM