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

2834 active golfers, 13035 entries

Leaderboard (lowest score wins):
16
#691 - James Raubenheimer / @jamzrob

07/18/2019 at 10:57PM

16
#692 - taka / @takaoutputblog

07/20/2019 at 04:16AM

16
#693 - John Contad! / @JohnContad

07/29/2019 at 02:08AM

16
#694 - Jonathan Browning / @yungjig90

07/30/2019 at 07:59PM

16
#695 - XiaoXiaoLui / @XiaoXiaoLui1

08/04/2019 at 06:08AM

16
#696 - Wistan Chou / @wisty97

08/14/2019 at 04:22PM

16
#697 - Maxime Turquetil / @maturquetil

08/21/2019 at 02:40PM

17
#698 - Cristian Lupașcu / @clupasq

03/30/2016 at 10:08AM

17
#699 - Kai Yuan / @kentyuan

03/30/2016 at 10:22AM

17
#700 - Dinesh Bhosale / @MrDineshBhosale

03/30/2016 at 09:48PM

17
#701 - Patrick Elliott / @thatcsguy

03/30/2016 at 10:48PM

17
#702 - Jon Krause / @jkrause314

03/30/2016 at 11:20PM

17
#703 - glepha / @glepha_vim

03/31/2016 at 06:00AM

17
#704 - Defts = DvToons / @defts

03/31/2016 at 07:15AM

17
#705 - Mister Knister / @vimgolf_ctrl_x

03/31/2016 at 07:26AM

17
#706 - Smylers / @Smylers2

03/31/2016 at 08:01AM

17
#707 - Jan Bundesmann / @janbundesmann

03/31/2016 at 01:44PM

17
#708 - axnyff / @axnyff

04/01/2016 at 03:33PM

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

04/02/2016 at 04:08PM

17
#710 - Philiphone / @Philiphone

04/03/2016 at 07:26AM

17
#711 - Vaughn Cato / @vaughncato

04/03/2016 at 05:00PM

17
#712 - Maria Shaldibina / @marynixie

04/04/2016 at 03:18AM

17
#713 - Luca Niccolini / @lvc4

04/06/2016 at 04:52AM

17
#714 - Dimitar Dimitrov / @kurkale6ka

04/06/2016 at 10:38AM

17
#715 - benthemeek / @benthemeek

04/07/2016 at 10:38PM

17
#716 - Shawn Wallis / @bote52469207

04/08/2016 at 02:39AM

17
#717 - f00b8tr / @f00b8tr5

04/09/2016 at 02:03AM

17
#718 - E Both / @enboth

04/12/2016 at 06:19PM

17
#719 - David Terry / @david_terry1

04/13/2016 at 09:25PM

17
#720 - Amar / @amarputki

04/20/2016 at 12:06AM