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

3898 active golfers, 18889 entries

Leaderboard (lowest score wins):
19
#1651 - Herbert S. / @herbertshlong

08/02/2016 at 07:46PM

19
#1652 - George Angelopoulos / @g_usermod

08/08/2016 at 09:18AM

19
#1653 - Soumya Ghosh / @ohmyghosh42

08/10/2016 at 02:39PM

19
#1654 - Quatrix / @Quatrix

08/12/2016 at 10:02AM

19
#1655 - John Rizkalla / @JohnRizkalla1

08/12/2016 at 08:18PM

19
#1656 - Michael Brailsford / @brailsmt

08/17/2016 at 01:31PM

19
#1657 - Zdravko Colic / @virtual_key

08/17/2016 at 05:35PM

19
#1658 - Jayr Magave / @jmagave

08/22/2016 at 04:03AM

19
#1659 - Thomas Thompson / @dealaltered

08/22/2016 at 11:19AM

19
#1660 - jj johnson / @jcassj1

08/22/2016 at 12:54PM

19
#1661 - Tuxitop / @tuxitop

08/22/2016 at 08:22PM

19
#1662 - citaret / @citaret

08/23/2016 at 09:11AM

19
#1663 - david / @fa5c1ec94e28916

08/24/2016 at 02:49AM

19
#1664 - Jakob / @jajob

08/31/2016 at 11:36AM

19
#1665 - xarmux / @xarmux

08/31/2016 at 10:21PM

19
#1666 - God / @iamgod

09/01/2016 at 12:39PM

19
#1667 - Netrisk Cool / @C00lt0

09/29/2016 at 04:22PM

19
#1668 - Niraj Thapaliya / @nthapaliya

10/12/2016 at 10:35PM

19
#1669 - Ryan Blais / @reblais

10/14/2016 at 01:52AM

19
#1670 - johannes err / @into_the_beta

10/15/2016 at 04:44PM

19
#1671 - Igor Czerwinski / @igoratron

10/18/2016 at 10:29PM

19
#1672 - Moe Lester / @laertonmailol

10/19/2016 at 10:29AM

19
#1673 - Pierre Sugar / @sugaryourcoffex

10/24/2016 at 07:21PM

19
#1674 - thialfihar / @thialfihar

11/20/2016 at 10:57AM

19
#1675 - Stein van Zwoll / @SteinvanZwoll

11/20/2016 at 09:09PM

19
#1676 - Victor Chibotaru / @tch1bo

11/30/2016 at 07:13PM

19
#1677 - Никита Канунников / @NIikitaK

12/04/2016 at 11:29AM

19
#1678 - FakeJake / @TehRealFakeJake

12/09/2016 at 08:15PM

19
#1679 - Oliver Newman / @orn688

12/14/2016 at 12:49AM

19
#1680 - Wolfram N. Müller / @wnmio

12/16/2016 at 11:00AM