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

2837 active golfers, 13051 entries

Leaderboard (lowest score wins):
22
#1981 - Rachel Murray / @RachelMurray11

08/28/2017 at 05:53AM

22
#1982 - Dmitry Zudochkin / @zudochkin

08/28/2017 at 09:18AM

22
#1983 - Jay Honnold / @zombywafflez

08/29/2017 at 08:25PM

22
#1984 - Laurent Atlan / @laurentatlan1

09/09/2017 at 11:11PM

22
#1985 - Joseph Nam / @josephknam

09/20/2017 at 10:30PM

22
#1986 - adkafka / @adkafka

09/23/2017 at 07:05AM

22
#1987 - Romeo Valentin / @Seecez

09/25/2017 at 02:38PM

22
#1988 - Joachim Nielandt / @joachimnielandt

09/30/2017 at 06:40PM

22
#1989 - Suphawit Getmark / @SGetmark

10/03/2017 at 07:23AM

22
#1990 - Jon Bakies / @jonbakies

10/05/2017 at 01:49PM

22
#1991 - Tristanto #BEJO / @OmTit

10/09/2017 at 09:00AM

22
#1992 - Danilo Đokić / @DaniloOkic

11/05/2017 at 02:50PM

22
#1993 - Mike Harris / @MikeMJHarris

11/10/2017 at 06:23PM

22
#1994 - manos koustelakis / @KoutsManos

11/18/2017 at 01:22AM

22
#1995 - Milo Cress / @CressMilo

11/20/2017 at 10:09PM

22
#1996 - Eric Friday / @fridayeric

11/22/2017 at 05:40AM

22
#1997 - shamibys / @shamibys

11/23/2017 at 02:34PM

22
#1998 - Samarth Hattangady / @samhattangady

12/01/2017 at 11:17AM

22
#1999 - AP_Nefer / @AP_Nefer

12/04/2017 at 11:28AM

22
#2000 - Raghav Mandayam / @raghavmandayam

01/02/2018 at 10:02AM

22
#2001 - Feras 🌐 / @feras_dev

01/03/2018 at 07:01AM

22
#2002 - Yousef Mohamed / @MohamedYoyo94

01/30/2018 at 01:17AM

22
#2003 - Patrick Stockwell / @patstockwell

02/11/2018 at 05:03AM

22
#2004 - Eugene Zavoloka / @ZavolokaEugene

02/17/2018 at 09:37PM

22
#2005 - teo danciu / @teozaurus

02/26/2018 at 03:25PM

22
#2006 - Aviv Es / @phistakis

03/04/2018 at 09:00AM

22
#2007 - Sven Grewe / @qoreQyaS

03/08/2018 at 10:14PM

22
#2008 - Luke Bryant / @LukeBryant55

03/13/2018 at 03:54PM

22
#2009 - p̻̻̥r̥̻̥o̻j̤͛ec͔t̞dp / @projectdp

03/19/2018 at 09:19AM

22
#2010 - 博多市@喪中 / @hakatashi

03/23/2018 at 05:00AM