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

2639 active golfers, 12107 entries

Leaderboard (lowest score wins):
14
#421 - Timothée Gauthier / @zmf_tim

06/05/2018 at 11:59AM

14
#422 - Davidoir / @Davidoir

06/05/2018 at 03:49PM

14
#423 - Dylan Nelson / @dlnnlsn

06/08/2018 at 01:50AM

14
#424 - もりお / @9nACjtcQ2NL0Va4

06/08/2018 at 08:07AM

14
#425 - 中野 彰 / @M__tech

06/09/2018 at 10:19AM

14
#426 - wolnosc / @wolnosc5

06/10/2018 at 07:55PM

14
#427 - Ernesto Barros / @ernestobarros7

06/15/2018 at 08:24PM

14
#428 - Christopher Oldfield / @humantree

06/19/2018 at 07:38AM

14
#429 - Buttars / @DeleteFreedom

06/19/2018 at 09:18PM

14
#430 - AnaverageJoe / @AnaverageJ

06/20/2018 at 08:44AM

14
#431 - Justin Hoyt / @JustinHoyt24

06/23/2018 at 06:17PM

14
#432 - Kevin Durand / @kdthefakemvp

06/28/2018 at 03:41AM

14
#433 - Michael W. Norris / @norrismw

06/28/2018 at 03:49AM

14
#434 - Ingo / @ist3fani

06/30/2018 at 12:18PM

14
#435 - sspan / @sspantz

07/02/2018 at 02:22AM

14
#436 - Xxax / @Xxax

07/02/2018 at 01:44PM

14
#437 - Judy / @Bibilidibipi

07/09/2018 at 03:42AM

14
#438 - JohnnyVim / @VimJohnny

07/09/2018 at 04:11PM

14
#439 - Artur Mróz / @MrozArtur

07/12/2018 at 09:47AM

14
#440 - Tom Biskup / @Tombisk

07/26/2018 at 08:55PM

14
#441 - Koo Zhengqun / @zhengqunkoo

07/27/2018 at 07:39AM

14
#442 - h3is3nd3rp / @h3is3nd3rp

08/01/2018 at 09:41PM

14
#443 - Samuel Hsiang / @alwayswimmin

08/03/2018 at 06:19AM

14
#444 - A / @777Android777

08/05/2018 at 09:07PM

14
#445 - O / @O34721877

08/07/2018 at 05:11AM

14
#446 - Thomas Weiss / @webgardener75

08/10/2018 at 01:18PM

14
#447 - Lorenzo Leonini / @Leol_

08/12/2018 at 12:13AM

14
#448 - darktef / @darktef

08/12/2018 at 07:24PM

14
#449 - Keldwik Chaldain / @Suskeyhose

08/14/2018 at 08:59PM

14
#450 - Daichi / @daichi1014

08/16/2018 at 03:27AM