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

3578 active golfers, 17274 entries

Leaderboard (lowest score wins):
20
#1981 - Rasmus P / @rasmup

12/10/2017 at 05:45PM

20
#1982 - Artem Kholodnyi / @defHLT

12/14/2017 at 10:50PM

20
#1983 - Goopy Flux / @GoopyFlux

12/20/2017 at 02:52PM

20
#1984 - Michael Xie / @iebox

12/22/2017 at 01:29PM

20
#1985 - d / @dion5618

01/04/2018 at 12:57AM

20
#1986 - Niker / @Nikersify

01/07/2018 at 10:19PM

20
#1987 - Simon Cheng / @bambooraccoon

01/12/2018 at 08:23PM

20
#1988 - Luong Nguyen / @LuongNguyen_95

01/13/2018 at 11:25AM

20
#1989 - John C Shea / @MHSSachems

01/14/2018 at 11:22AM

20
#1990 - Dmitriy Meleshko / @mitrio2

01/16/2018 at 08:45PM

20
#1991 - Scott Smith / @Scottaino

01/21/2018 at 07:09PM

20
#1992 - วินเยดจุติสอง / @r3nniW

01/22/2018 at 07:28AM

20
#1993 - Infinity Delta / @InfinityDelta

01/26/2018 at 01:21AM

20
#1994 - Ace Blace / @ace_blace

02/01/2018 at 06:49AM

20
#1995 - John Addams / @JohnAddams19

02/01/2018 at 07:01PM

20
#1996 - die_krabbe / @die_krabbe

02/02/2018 at 08:17AM

20
#1997 - Markus Ankenbrand / @IIMOG

02/22/2018 at 06:42PM

20
#1998 - Vaughan 〠 / @nyx_mmix

02/27/2018 at 05:39AM

20
#1999 - Max Horn / @maexlich

03/02/2018 at 09:52PM

20
#2000 - Matthew Barry / @komputerwiz

03/10/2018 at 09:48PM

20
#2001 - Austin Gundry / @a_gundry

03/21/2018 at 04:36PM

20
#2002 - Михаил Фуфин / @MishaFufin

03/31/2018 at 06:14PM

20
#2003 - ran stud / @randstud9000

04/05/2018 at 06:51PM

20
#2004 - Sergio Gil / @porras

04/06/2018 at 07:03PM

20
#2005 - Daniel Hanson / @dghanson1

04/15/2018 at 10:20PM

20
#2006 - wancharle / @wancharle

04/20/2018 at 02:23AM

20
#2007 - jet / @jameslintaylor

04/20/2018 at 03:38AM

20
#2008 - Blue Thunder Somogyi / @bsomogyi

04/20/2018 at 11:13PM

20
#2009 - Alex Budilovsky / @alexbudy

05/01/2018 at 04:43AM

20
#2010 - Endre Galaczi / @galacziendre

05/02/2018 at 11:14AM