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

3068 active golfers, 14429 entries

Leaderboard (lowest score wins):
17
#781 - Jan Bundesmann / @janbundesmann

03/31/2016 at 01:44PM

17
#782 - axnyff / @axnyff

04/01/2016 at 03:33PM

17
#783 - Brendan Op 't Root / @OptrootB

04/02/2016 at 04:08PM

17
#784 - Philiphone / @Philiphone

04/03/2016 at 07:26AM

17
#785 - Vaughn Cato / @vaughncato

04/03/2016 at 05:00PM

17
#786 - Maria Shaldibina / @marynixie

04/04/2016 at 03:18AM

17
#787 - Luca Niccolini / @lvc4

04/06/2016 at 04:52AM

17
#788 - Dimitar Dimitrov / @kurkale6ka

04/06/2016 at 10:38AM

17
#789 - benthemeek / @benthemeek

04/07/2016 at 10:38PM

17
#790 - Shawn Wallis / @bote52469207

04/08/2016 at 02:39AM

17
#791 - f00b8tr / @f00b8tr5

04/09/2016 at 02:03AM

17
#792 - E Both / @enboth

04/12/2016 at 06:19PM

17
#793 - David Terry / @david_terry1

04/13/2016 at 09:25PM

17
#794 - Amar / @amarputki

04/20/2016 at 12:06AM

17
#795 - Håkon Bråten / @h_braten

04/26/2016 at 03:04PM

17
#796 - Adam Collins / @adc613

04/28/2016 at 08:12PM

17
#797 - CM Déjardin ن / @CMDej

05/02/2016 at 08:02AM

17
#798 - Tommy Wu / @TommyJSWu

05/02/2016 at 01:48PM

17
#799 - Yudi Matsuzake / @yudimatsuzake

05/03/2016 at 12:26AM

17
#800 - gabbagandalf / @frioprou3

05/05/2016 at 09:39PM

17
#801 - Phuc Ngo Hoang Anh / @nhap96

05/08/2016 at 01:55PM

17
#802 - よっぴぃ / @yoppynmhs

05/09/2016 at 03:42AM

17
#803 - Fnord Everywhere / @FnordE

05/10/2016 at 06:39AM

17
#804 - Pete Gadomski / @petegadomski

05/10/2016 at 10:00PM

17
#805 - retro / @tryphopp

05/11/2016 at 01:36AM

17
#806 - Patrick Knosowski / @KnoP8024

05/12/2016 at 07:25PM

17
#807 - Artūras Zakrevskis / @AZakrevskis

05/19/2016 at 03:01PM

17
#808 - vic © / @2r2w

05/19/2016 at 05:31PM

17
#809 - Michal Sylwester / @msylw

05/19/2016 at 11:34PM

17
#810 - Gabriel Tailor / @gabriel_tailor

05/26/2016 at 11:57AM