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

2705 active golfers, 12428 entries

Leaderboard (lowest score wins):
17
#691 - CM Déjardin ن / @CMDej

05/02/2016 at 08:02AM

17
#692 - Tommy Wu / @TommyJSWu

05/02/2016 at 01:48PM

17
#693 - Yudi Matsuzake / @yudimatsuzake

05/03/2016 at 12:26AM

17
#694 - gabbagandalf / @frioprou3

05/05/2016 at 09:39PM

17
#695 - Phuc Ngo Hoang Anh / @nhap96

05/08/2016 at 01:55PM

17
#696 - よっぴぃ / @yoppynmhs

05/09/2016 at 03:42AM

17
#697 - Fnord Everywhere / @FnordE

05/10/2016 at 06:39AM

17
#698 - Pete Gadomski / @petegadomski

05/10/2016 at 10:00PM

17
#699 - retro / @tryphopp

05/11/2016 at 01:36AM

17
#700 - Patrick Knosowski / @KnoP8024

05/12/2016 at 07:25PM

17
#701 - Artūras Zakrevskis / @AZakrevskis

05/19/2016 at 03:01PM

17
#702 - vic © / @2r2w

05/19/2016 at 05:31PM

17
#703 - Michal Sylwester / @msylw

05/19/2016 at 11:34PM

17
#704 - Gabriel Tailor / @gabriel_tailor

05/26/2016 at 11:57AM

17
#705 - Taras Kolodny / @trskldn

06/03/2016 at 04:53PM

17
#706 - Tai Le Tien / @letientai299

06/09/2016 at 05:48PM

17
#707 - Ivo Burkatzki / @ibukat

06/11/2016 at 02:38PM

17
#708 - Павел Игоревич / @VizierST

06/18/2016 at 01:19PM

17
#709 - Alex Rod. / @thealex23ro

06/30/2016 at 12:03AM

17
#710 - Irakli Janiashvili / @iJaniashvili

07/14/2016 at 03:17PM

17
#711 - Darius Smaliukas / @daraz999

07/17/2016 at 12:00PM

17
#712 - kwa / @kwa129

07/18/2016 at 12:22PM

17
#713 - Rathrio / @Rathrio

07/19/2016 at 06:51PM

17
#714 - カオスラボ / @chaoscloud950

07/20/2016 at 02:15PM

17
#715 - Bran / @brandypix

07/22/2016 at 05:19PM

17
#716 - 王运 / @640138017

07/29/2016 at 08:04AM

17
#717 - Jeremiah Goyette / @JeremiahGoyette

07/30/2016 at 01:50AM

17
#718 - Devin Lehmacher / @lehmacdj

08/02/2016 at 05:46PM

17
#719 - 青木 美将 / @YoshimasaAoki

08/03/2016 at 07:57AM

17
#720 - daibi2 / @Daibi2Zheng

08/20/2016 at 06:01AM