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

2758 active golfers, 12667 entries

Leaderboard (lowest score wins):
21
#1681 - Steven Occhipinti / @steveocchipinti

11/04/2016 at 04:31AM

21
#1682 - Cody Roberts / @bloomyminded

11/15/2016 at 03:44AM

21
#1683 - sudqi jawabreh / @sudqijawabreh

11/15/2016 at 05:16PM

21
#1684 - Thierry Flauss / @ThFjunior

11/17/2016 at 06:44PM

21
#1685 - Steven Herbst / @transistorman

11/21/2016 at 06:10AM

21
#1686 - Sergey Alekhnovich / @salekhn

11/25/2016 at 09:11PM

21
#1687 - Ilya Glotov / @ilyaglotov

11/29/2016 at 10:54PM

21
#1688 - Sam Noedel / @alphanotmeric

11/30/2016 at 04:45AM

21
#1689 - 김재민 / @slamdunkbk

12/01/2016 at 06:47AM

21
#1690 - kodemaan / @kodemaan

12/01/2016 at 10:34PM

21
#1691 - VivienVandaele / @VandaeleVivien

12/10/2016 at 04:58PM

21
#1692 - Pablo Fonseca / @pablobfonseca

12/15/2016 at 08:38PM

21
#1693 - Lewis Sparlin / @lewis_sparlin

12/20/2016 at 07:26PM

21
#1694 - Tuxi Tux / @MrKrautee

12/22/2016 at 09:16PM

21
#1695 - Jed Cua / @jedcua_novare

12/27/2016 at 07:24AM

21
#1696 - Markus Lux / @_l0x_

01/03/2017 at 01:12PM

21
#1697 - Pawel / @pracownikpl

01/17/2017 at 09:32AM

21
#1698 - ZW / @ZW73226885

01/24/2017 at 06:45PM

21
#1699 - Riz Joj / @rizjoj

01/27/2017 at 05:15AM

21
#1700 - Mohd Amin Yuddin / @mohdaminyuddin

02/07/2017 at 04:52AM

21
#1701 - Cù Hữu Hoàng / @Cuhuuhoang

02/14/2017 at 03:08AM

21
#1702 - Julien Pepy / @shin_komuta

02/22/2017 at 04:12PM

21
#1703 - Evgeny Morozov / @Evmorov

02/25/2017 at 09:07PM

21
#1704 - Zack Orndorff / @ZackOrndorff

03/04/2017 at 06:54PM

21
#1705 - Mitchell / @Spitchell

03/16/2017 at 02:55PM

21
#1706 - Andreas Anderbach / @AAnderbach

03/19/2017 at 04:38PM

21
#1707 - Mark Brody / @_markbrody

03/23/2017 at 04:49AM

21
#1708 - ephemient / @ephemient

04/15/2017 at 06:47AM

21
#1709 - claytron / @claytron

04/19/2017 at 12:06AM

21
#1710 - Grumpy Nerd / @grumpy_nerd

04/21/2017 at 11:31AM