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

2970 active golfers, 13860 entries

Leaderboard (lowest score wins):
23
#2311 - Sourciluss / @sourciluss

01/22/2018 at 12:36AM

23
#2312 - Argyle Sundries / @ArgyleSundries

01/29/2018 at 02:43AM

23
#2313 - Christopher Fujino / @chrisfujino

01/31/2018 at 12:54AM

23
#2314 - daniel / @danueb

01/31/2018 at 09:06PM

23
#2315 - rvnjsphdmn / @rvnjsphdmn

02/05/2018 at 01:10AM

23
#2316 - DunkingKruger / @DunkingKruger

02/08/2018 at 04:58AM

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

02/09/2018 at 06:38AM

23
#2318 - korzenmichal / @korzenmichal

02/09/2018 at 03:54PM

23
#2319 - nikos efthias / @nikosef8ias

02/11/2018 at 11:15PM

23
#2320 - Alexandre de Chaumont Quitry / @Alexandre_CQ

02/13/2018 at 11:59PM

23
#2321 - Natalie Howes / @NatalieFHowes

02/14/2018 at 08:49PM

23
#2322 - Chad Ostrowski / @chadoh

02/21/2018 at 06:38PM

23
#2323 - Tris-tan / @questionblob

02/21/2018 at 09:13PM

23
#2324 - Andy Aldo Dharmawan / @andyyaldoo

03/04/2018 at 02:18PM

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

03/14/2018 at 01:19PM

23
#2326 - Andrew Thal / @athal7

03/22/2018 at 10:59PM

23
#2327 - matthew brett / @matthewbrett

03/23/2018 at 11:06PM

23
#2328 - 钟昌源 / @zcy_perio

03/29/2018 at 07:48AM

23
#2329 - 서강훈 / @shirano150

04/02/2018 at 08:02AM

23
#2330 - Alex / @SasjaPollyWog

04/09/2018 at 05:37PM

23
#2331 - Yigit Sever / @_yigitsever

04/09/2018 at 11:44PM

23
#2332 - Nebi / @Nebibine

04/16/2018 at 05:10PM

23
#2333 - Ivan Klishch / @KLIvan

04/20/2018 at 09:08PM

23
#2334 - Tom / @atomgrand

04/30/2018 at 06:20PM

23
#2335 - Sean / @seanwbehan

05/04/2018 at 07:28AM

23
#2336 - Wolfgang M. / @lebenlechzer

05/04/2018 at 12:34PM

23
#2337 - MarinAkaFulk / @MarinAkaFulk

05/08/2018 at 10:21PM

23
#2338 - Kenneth Flak / @FlakKenneth

05/11/2018 at 08:23PM

23
#2339 - Vincent Riesop / @VincentRiesop

05/12/2018 at 09:40PM

23
#2340 - Wasistdasfuer1Welt / @Wasistdasfuer1W

05/14/2018 at 11:07AM