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
#2341 - Johannes / @joka253

06/24/2019 at 08:43AM

21
#2342 - Aurel / @AurelienFebvre

06/24/2019 at 07:33PM

21
#2343 - Clarence Cheong / @IBrightStudioI

07/10/2019 at 04:14AM

21
#2344 - Eden / @Eden93974445

07/12/2019 at 02:27AM

21
#2345 - r / @nameequalsmain

07/16/2019 at 12:22PM

21
#2346 - Robin Abrahamsson / @rqAbrahamsson

07/22/2019 at 07:54PM

21
#2347 - SirMizou / @SirMizou

08/07/2019 at 09:09PM

21
#2348 - Enrico Campidoglio / @ecampidoglio

08/12/2019 at 01:10PM

21
#2349 - Daniel / @dpaneda

08/23/2019 at 04:53PM

21
#2350 - 김형창 / @uVmEMZsCgcYvqZi

09/05/2019 at 09:32AM

21
#2351 - Lukas Schmidt / @TheRealGeStar

09/11/2019 at 09:21AM

21
#2352 - Ralph Callaway / @RalphAtCCC

09/14/2019 at 05:54AM

21
#2353 - GolfingWithVim1 / @Vim1With

10/20/2019 at 03:56PM

21
#2354 - Cardboard Cat / @CardboardCatMTG

10/23/2019 at 02:03AM

21
#2355 - Roman / @Romezzz_

11/09/2019 at 08:23AM

21
#2356 - LinusPoutine / @LinusPoutine

11/12/2019 at 01:09PM

21
#2357 - Minyi Zhong / @minyi_zhong

11/22/2019 at 12:30AM

21
#2358 - vim_golfer_1 / @vimgolfer12

12/03/2019 at 09:04AM

21
#2359 - Youle Chen / @YouleC

12/05/2019 at 02:02PM

21
#2360 - Simon Kraemer / @sikraemer

12/16/2019 at 09:28AM

21
#2361 - l4cr0ss / @l4cr0ss

12/19/2019 at 09:09PM

21
#2362 - James Casey / @hanavi

12/20/2019 at 09:15PM

21
#2363 - Rishabh Chatterjee / @RishabhChatte14

12/23/2019 at 11:00PM

21
#2364 - Quentin Plazar / @QuentinPlazar

01/27/2020 at 10:55PM

21
#2365 - Enrique Gómez Cruz / @couscouscricket

01/31/2020 at 07:15AM

21
#2366 - Sander Vanhove / @SanderVhove

02/05/2020 at 10:56AM

21
#2367 - Chris League / @chrisleague

02/22/2020 at 09:26PM

21
#2368 - Tomas / @Tombakas

03/14/2020 at 01:29AM

21
#2369 - Daniel López / @Dani17H

03/14/2020 at 06:12PM

21
#2370 - Rafael Gonzaga / @_rafaelgss

04/20/2020 at 02:09PM