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

3390 active golfers, 16220 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 l͓̽o͓̽c͓̽k͓̽e͓̽d͓̽d͓̽o͓̽w͓̽n͓̽ 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

15
#652 - Piotr Walkusz / @piotrwalkusz1

08/11/2018 at 07:43PM

15
#653 - A E / @aechirps

09/11/2018 at 01:30AM

15
#654 - Robin De Mol / @RobinDeMol

09/14/2018 at 10:11AM

15
#655 - Vasil Mikhalenya / @bazillek

09/21/2018 at 07:30PM

15
#656 - Sebastian Korten / @FlashKorten

10/12/2018 at 04:28PM

15
#657 - Commi / @hellocommi

11/23/2018 at 07:29PM

15
#658 - 波波 / @sbob87

01/04/2019 at 06:08AM

15
#659 - Fl4t / @Fl4t

01/07/2019 at 08:02PM

15
#660 - Federico / @gselsette

01/23/2019 at 12:11AM