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

2883 active golfers, 13373 entries

Leaderboard (lowest score wins):
21
#1741 - Alex Ulitin / @inventivealex

09/23/2016 at 02:20AM

21
#1742 - Daniel Bellenger / @DanielBellenger

09/24/2016 at 09:59PM

21
#1743 - René De Alvarado / @renedealvarado

09/27/2016 at 12:29PM

21
#1744 - @ / @kangur85

10/05/2016 at 10:48PM

21
#1745 - Pradeep Kumar / @pradeep6kumar

10/10/2016 at 02:46PM

21
#1746 - Tomas[Tomsik68] / @tomsik68

10/14/2016 at 09:52PM

21
#1747 - eozd / @e_ozd

10/23/2016 at 12:58PM

21
#1748 - Adrian K. Eriksen / @adrianke

10/24/2016 at 04:50PM

21
#1749 - Alexis Praga / @Fitzwy

10/28/2016 at 11:45AM

21
#1750 - Alpa_akm / @Alpa_akm

10/29/2016 at 02:57AM

21
#1751 - Shmelev Jaroslav / @hummelchen0

10/30/2016 at 12:52PM

21
#1752 - Steven Occhipinti / @steveocchipinti

11/04/2016 at 04:31AM

21
#1753 - Cody Roberts / @bloomyminded

11/15/2016 at 03:44AM

21
#1754 - sudqi jawabreh / @sudqijawabreh

11/15/2016 at 05:16PM

21
#1755 - Thierry Flauss / @ThFjunior

11/17/2016 at 06:44PM

21
#1756 - Steven Herbst / @transistorman

11/21/2016 at 06:10AM

21
#1757 - Sergey Alekhnovich / @salekhn

11/25/2016 at 09:11PM

21
#1758 - Ilya Glotov / @ilyaglotov

11/29/2016 at 10:54PM

21
#1759 - Sam Noedel / @alphanotmeric

11/30/2016 at 04:45AM

21
#1760 - 김재민 / @slamdunkbk

12/01/2016 at 06:47AM

21
#1761 - kodemaan / @kodemaan

12/01/2016 at 10:34PM

21
#1762 - VivienVandaele / @VandaeleVivien

12/10/2016 at 04:58PM

21
#1763 - Pablo Fonseca / @pablobfonseca

12/15/2016 at 08:38PM

21
#1764 - Lewis Sparlin / @lewis_sparlin

12/20/2016 at 07:26PM

21
#1765 - Tuxi Tux / @MrKrautee

12/22/2016 at 09:16PM

21
#1766 - Jed Cua / @jedcua_novare

12/27/2016 at 07:24AM

21
#1767 - Markus Lux / @_l0x_

01/03/2017 at 01:12PM

21
#1768 - Pawel / @pracownikpl

01/17/2017 at 09:32AM

21
#1769 - ZW / @ZW73226885

01/24/2017 at 06:45PM

21
#1770 - Riz Joj / @rizjoj

01/27/2017 at 05:15AM