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

2888 active golfers, 13395 entries

Leaderboard (lowest score wins):
14
#121 - Anas Salah Eddin / @asalaheddin

10/29/2016 at 06:21PM

14
#122 - ZorgroZ / @ZorgroZ

11/02/2016 at 11:58PM

14
#123 - scottarver / @scottarver

11/03/2016 at 02:59AM

14
#124 - Davis Fields / @i301585

11/03/2016 at 10:24PM

14
#125 - vim golf wolfe / @vimwolfe

11/05/2016 at 10:58PM

14
#126 - nemonomine / @nemonomine

11/06/2016 at 08:02PM

14
#127 - Joe Reddington / @joereddington

11/08/2016 at 12:13AM

14
#128 - Ignacio Catalina / @ignaciocatalina

11/08/2016 at 01:30PM

14
#129 - 張育瑄 / @harry830622

11/10/2016 at 04:35AM

14
#130 - Evgeny`s Kindle / @EvgenyKindle

11/12/2016 at 12:27PM

14
#131 - Alan Turing / @alantrng

11/13/2016 at 08:21AM

14
#132 - Scott Hoggarth / @Hoggarth

11/13/2016 at 03:34PM

14
#133 - fx32gamer / @fx32gamer

11/14/2016 at 10:55PM

14
#134 - i1464083 / @i1464083

11/18/2016 at 11:16AM

14
#135 - Pablo R. Dinella / @pablordinella

11/23/2016 at 06:42PM

14
#136 - Михаил Доронин / @Boris_B_London

11/23/2016 at 09:12PM

14
#137 - Wessel Sinnema / @wsinnema

11/26/2016 at 11:04AM

14
#138 - Jim Johnson / @DAS_EBON_HAWK

11/27/2016 at 04:18AM

14
#139 - Michael Buckley / @apolatg

11/28/2016 at 08:26PM

14
#140 - えるざっぷ / @_elzup_

12/03/2016 at 03:41AM

14
#141 - YNWP / @ynw_P

12/07/2016 at 10:24AM

14
#142 - Nick Pope / @ngnpope

12/13/2016 at 06:25PM

14
#143 - Carbage Gollector / @CarbageG

12/14/2016 at 01:03AM

14
#144 - Roey Berman / @ManBergundyPig

12/15/2016 at 12:29AM

14
#145 - Douglas Roper / @dougdroper

12/16/2016 at 04:35PM

14
#146 - Andrew Huang / @TDAlgory

12/18/2016 at 08:03AM

14
#147 - Peter Chynoweth / @pcchynoweth

12/19/2016 at 04:52PM

14
#148 - thejojo87 / @thejojo1987

12/21/2016 at 05:56AM

14
#149 - Andrew Lewis / @droosec

12/21/2016 at 04:48PM

14
#150 - Krishnakumar / @Krishna84417968

12/28/2016 at 07:32AM