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

2946 active golfers, 13705 entries

Leaderboard (lowest score wins):
22
#1981 - Elliott Mantock / @elGatoMantocko

05/03/2016 at 08:51PM

22
#1982 - Peter Uhnak / @peteruhnak

05/07/2016 at 08:25AM

22
#1983 - Tyler Ochiai / @OchiaiTyler

05/27/2016 at 07:18AM

22
#1984 - Robin Ramael / @RobinRamael

05/30/2016 at 04:01PM

22
#1985 - るー / @loupbita

06/04/2016 at 10:35AM

22
#1986 - Zed Byrne / @ZeByrne

06/13/2016 at 10:14AM

22
#1987 - Dave O'Keeffe / @daveok

06/15/2016 at 09:31PM

22
#1988 - Dave Solomon / @davemsolomon

06/25/2016 at 03:40AM

22
#1989 - Gabriel Niko Mojica / @MojicaNiko

07/06/2016 at 11:21PM

22
#1990 - Leix b / @leix_b

07/07/2016 at 06:22PM

22
#1991 - Pavol Slamka / @Archipedes

07/13/2016 at 01:39PM

22
#1992 - Chris Gardner / @t00manybananas

07/14/2016 at 06:54PM

22
#1993 - Nat / @ntzm_

07/15/2016 at 11:03AM

22
#1994 - Ygor Bruxel / @ygorbruxel

07/16/2016 at 10:52PM

22
#1995 - Matt Clement / @zetaspartan2552

07/30/2016 at 11:49PM

22
#1996 - Tuấnn / @tuantv_nd

08/02/2016 at 03:03PM

22
#1997 - Luke Was / @acatalepteron

08/13/2016 at 02:23AM

22
#1998 - Đinh Quang Trung / @trungdq88

08/20/2016 at 05:33AM

22
#1999 - Maik Teske / @maikteske

08/23/2016 at 02:33PM

22
#2000 - Jason Melton / @ushimitsudoki

08/26/2016 at 09:54AM

22
#2001 - ymmtmdk / @ymmtmdk

08/30/2016 at 01:08AM

22
#2002 - Eric Nielsen / @ericbn8

09/03/2016 at 01:24AM

22
#2003 - Christophe Perrotin / @ChrisPerSurTwit

09/24/2016 at 04:12PM

22
#2004 - Chance Gibbs / @CautiousCarlton

10/10/2016 at 08:12PM

22
#2005 - aoeuhtnahtnauohtnu / @htnoeieioeioeui

10/20/2016 at 10:55AM

22
#2006 - Aaron Ogan / @aaronogan

10/21/2016 at 01:24PM

22
#2007 - Toscha / @_Toscha_

11/13/2016 at 10:36PM

22
#2008 - Корнев Руслан / @woto7

12/04/2016 at 03:25PM

22
#2009 - MS / @mislusnys

12/12/2016 at 04:20PM

22
#2010 - Ryugo Abe / @Ryu8179

12/13/2016 at 02:34AM