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):
23
#2281 - duxifuhivo@p33.org / @duxifuhivo

12/14/2017 at 12:34PM

23
#2282 - Brett Plocek / @BrettP02

12/16/2017 at 04:44AM

23
#2283 - allinonemovie / @allinonemovie

12/17/2017 at 05:44PM

23
#2284 - Luke Parsons / @lukeparsons

12/20/2017 at 05:27PM

23
#2285 - Ahmed Hasan / @ahmedrhasan

12/23/2017 at 03:46AM

23
#2286 - altalt / @altalt_jp

12/28/2017 at 04:38PM

23
#2287 - Dan_Sonari.exe / @LokSonarius

01/02/2018 at 04:59PM

23
#2288 - Martin Jaime / @mrtnJaime

01/02/2018 at 07:35PM

23
#2289 - Maarten Claes / @maartencls

01/04/2018 at 05:59PM

23
#2290 - Andrew Davis / @AndrewD14539793

01/13/2018 at 10:59PM

23
#2291 - Sourciluss / @sourciluss

01/22/2018 at 12:36AM

23
#2292 - Argyle Sundries / @ArgyleSundries

01/29/2018 at 02:43AM

23
#2293 - Christopher Fujino / @chrisfujino

01/31/2018 at 12:54AM

23
#2294 - daniel / @danueb

01/31/2018 at 09:06PM

23
#2295 - rvnjsphdmn / @rvnjsphdmn

02/05/2018 at 01:10AM

23
#2296 - DunkingKruger / @DunkingKruger

02/08/2018 at 04:58AM

23
#2297 - Emil Rönnbäck / @emilronnback

02/09/2018 at 06:38AM

23
#2298 - korzenmichal / @korzenmichal

02/09/2018 at 03:54PM

23
#2299 - nikos efthias / @nikosef8ias

02/11/2018 at 11:15PM

23
#2300 - Alexandre de Chaumont Quitry / @Alexandre_CQ

02/13/2018 at 11:59PM

23
#2301 - Natalie Howes / @NatalieFHowes

02/14/2018 at 08:49PM

23
#2302 - Chad Ostrowski / @chadoh

02/21/2018 at 06:38PM

23
#2303 - Tris-tan / @questionblob

02/21/2018 at 09:13PM

23
#2304 - Andy Aldo Dharmawan / @andyyaldoo

03/04/2018 at 02:18PM

23
#2305 - Charles-Henri GUÉRIN / @charlyx

03/14/2018 at 01:19PM

23
#2306 - Andrew Thal / @athal7

03/22/2018 at 10:59PM

23
#2307 - matthew brett / @matthewbrett

03/23/2018 at 11:06PM

23
#2308 - 钟昌源 / @zcy_perio

03/29/2018 at 07:48AM

23
#2309 - 서강훈 / @shirano150

04/02/2018 at 08:02AM

23
#2310 - Alex / @SasjaPollyWog

04/09/2018 at 05:37PM