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

3455 active golfers, 16617 entries

Leaderboard (lowest score wins):
19
#1741 - Константин / @pillar_vandyke

10/17/2019 at 05:49AM

19
#1742 - Dantes / @YoManu513_

10/18/2019 at 12:24AM

19
#1743 - roemermeier / @roemermeier

10/19/2019 at 02:17PM

19
#1744 - Vojtěch Pejša / @7Vojta7

10/22/2019 at 07:21PM

19
#1745 - Jayesh Hathila / @jayesh_hathila

10/30/2019 at 07:57AM

19
#1746 - Gufran / @freatbeater

10/30/2019 at 03:33PM

19
#1747 - shoji541 / @shoji541

11/03/2019 at 03:31PM

19
#1748 - Tokos Apos / @AposTokosapos

11/04/2019 at 10:30AM

19
#1749 - Chris Covert / @covertcj

11/07/2019 at 03:24PM

19
#1750 - Singiamtel / @Singiamtel

11/19/2019 at 11:36PM

19
#1751 - FaeFeyFa / @fae_fey

11/30/2019 at 12:01AM

19
#1752 - Nil / @nilnoone

12/02/2019 at 03:30PM

19
#1753 - およねさん / @yuukikun31

12/04/2019 at 01:19AM

19
#1754 - David Vilar / @davvil_dvt

12/05/2019 at 12:52PM

19
#1755 - Jason Neylon / @jasonneylon

12/12/2019 at 09:43PM

19
#1756 - Thomas Churchman / @Beskhue

12/14/2019 at 12:03PM

19
#1757 - Dan Kilman / @dan_kilman

12/18/2019 at 03:18PM

19
#1758 - Brian Chen / @ISayFuckTooMuch

12/19/2019 at 08:17PM

19
#1759 - Steven / @Hallzy_18

12/21/2019 at 06:29PM

19
#1760 - Sujay Vadlakonda / @SujayVadlakonda

12/24/2019 at 04:49PM

19
#1761 - novax / @novax22953288

01/08/2020 at 05:52PM

19
#1762 - Chris Stevenson / @cstevenstar

01/11/2020 at 06:59AM

19
#1763 - Karnival K / @K4rnival

01/14/2020 at 08:03PM

19
#1764 - Jose Javier Gonzalez / @jjgort

01/18/2020 at 12:56AM

19
#1765 - Gero Zimmer / @gerozimmer

01/18/2020 at 05:14PM

19
#1766 - DosLin / @hidoslin

01/21/2020 at 06:36AM

19
#1767 - Brent Westbrook / @westbrook_brent

01/21/2020 at 11:03PM

19
#1768 - Lukas Klingberg / @ElKlingberg

01/26/2020 at 05:42PM

19
#1769 - Paweł Kupiec / @pawelecXX

02/03/2020 at 01:52AM

19
#1770 - Steffen / @Pions90

02/14/2020 at 06:18PM