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

3880 active golfers, 18798 entries

Leaderboard (lowest score wins):
14
#631 - kashikasitaro / @kashikasitaro

04/18/2020 at 05:32AM

14
#632 - Atzz / @AtzzCokeK

04/18/2020 at 05:56AM

14
#633 - cyndiii-development / @cyndiiidevelop1

04/18/2020 at 06:03AM

14
#634 - Sabin maharjan / @Sabinma86681681

04/19/2020 at 08:56AM

14
#635 - temp / @temp16343368

04/20/2020 at 01:16PM

14
#636 - Márcio Santos / @m4rciosantos

04/21/2020 at 05:08PM

14
#637 - Victor / @victor_rma

04/25/2020 at 12:11AM

14
#638 - Stian Selnes / @stianse

04/26/2020 at 08:27AM

14
#639 - Sylvain Leroux / Yes, I Know IT ! / @Yes_I_Know_IT

04/27/2020 at 11:03PM

14
#640 - Arthur Goodman / @ArthurGoodman3

04/29/2020 at 06:30PM

14
#641 - Pawel Wenda / @pwlwnd

05/06/2020 at 08:42PM

14
#642 - Morten Paulsen / @MortenP96

05/07/2020 at 12:47AM

14
#643 - Iliyapichugin / @iliyapichugin

05/07/2020 at 10:26PM

14
#644 - Manikkumar / @ManikkumarK

05/10/2020 at 03:05AM

14
#645 - WM / @WM97222391

05/11/2020 at 03:57AM

14
#646 - 于吉星 / @fishermryn

05/22/2020 at 09:32AM

14
#647 - garry quested / @GQuested

05/23/2020 at 11:22AM

14
#648 - chocolate / @chocola81394123

05/26/2020 at 06:26PM

14
#649 - Finlay McAfee / @finsqm

05/26/2020 at 09:16PM

14
#650 - RockerZZY / @rocker_zzy

05/27/2020 at 05:46AM

14
#651 - Dirty Harry / @TateDirty

05/29/2020 at 08:49AM

14
#652 - speisz / @speiszc

06/02/2020 at 10:51PM

14
#653 - 六弦 / @liuxian1990

06/06/2020 at 11:52AM

14
#654 - nico / @res_tantum

06/08/2020 at 07:08PM

14
#655 - mohamed / @melsayed891

06/11/2020 at 11:48PM

14
#656 - Jake / @Jake88567157

06/12/2020 at 02:22PM

14
#657 - loupiot.veloce / @LoupiotVeloce

06/13/2020 at 07:51PM

14
#658 - eliasrg / @eliasrg16

06/24/2020 at 02:03AM

14
#659 - mocihan / @mocihan

06/27/2020 at 05:24AM

14
#660 - 大矢元海 / @008Genkai

06/30/2020 at 07:02PM