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

3025 active golfers, 14214 entries

Leaderboard (lowest score wins):
20
#1771 - regsdev / @regsdev

05/14/2019 at 09:34PM

20
#1772 - Vitaly Sinilin / @unterwulf

05/15/2019 at 01:44PM

20
#1773 - Jonathan Letham / @JonathanLetham

06/06/2019 at 04:22PM

20
#1774 - Graeme Smith / @InstaGraeme

06/06/2019 at 09:18PM

20
#1775 - Erik Lindeborg / @ErikLindeborg

06/07/2019 at 04:46PM

20
#1776 - mrrdl / @mrrdl5

06/07/2019 at 07:17PM

20
#1777 - soundscope / @__soundscope__

06/25/2019 at 12:58PM

20
#1778 - Mike Clark / @mikeclark729

06/26/2019 at 08:07PM

20
#1779 - Jason Chen / @chezbgone

07/04/2019 at 07:24AM

20
#1780 - Lingyu Yi / @LgxLingyu

07/08/2019 at 03:58AM

20
#1781 - Diego Balseiro / @diegobalseiro

07/10/2019 at 03:09AM

20
#1782 - Matt Vaughn / @mattttvaughn

07/29/2019 at 12:09AM

20
#1783 - Alexey Chabunin / @achabunin

07/29/2019 at 06:57AM

20
#1784 - Pittson / @Pittson95

07/30/2019 at 08:18PM

20
#1785 - Mike Hourahine / @mhourahine

08/01/2019 at 01:32AM

20
#1786 - Adrien / @beudbeud

08/10/2019 at 07:40PM

20
#1787 - Fritz Inf / @6360info

08/15/2019 at 09:44AM

20
#1788 - BESSENG A IREH Guy / @guybesseng

08/15/2019 at 09:59PM

20
#1789 - pommevilla / @pawlrus

08/20/2019 at 09:31PM

20
#1790 - José / @AngelGaldamez

08/25/2019 at 05:27PM

20
#1791 - freehaha / @freehaha

08/28/2019 at 04:57AM

20
#1792 - じんぺー / @jinpei0908

09/01/2019 at 05:29AM

20
#1793 - Roger Leitner / @roger_leitner

09/09/2019 at 07:46AM

20
#1794 - Ashwin Menon / @IngridMorstrad

10/03/2019 at 10:32PM

20
#1795 - Devistator / @Devistator5

10/08/2019 at 09:25AM

20
#1796 - tuctdape / @tuctdape1

10/10/2019 at 09:08PM

20
#1797 - Homo Ludens / @BsMainly

10/17/2019 at 02:10PM

20
#1798 - yawryck / @yawryck

10/19/2019 at 03:24AM

20
#1799 - rr / @rodgeur31

10/25/2019 at 10:12PM

20
#1800 - ゆきみ / @edp02

11/04/2019 at 04:29PM