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

3870 active golfers, 18755 entries

Leaderboard (lowest score wins):
14
#301 - gh / @hihsym

09/25/2017 at 08:00AM

14
#302 - Sergio / @voyeg3r

09/27/2017 at 10:47PM

14
#303 - Julien Philippon / @Apoutchika

09/27/2017 at 10:52PM

14
#304 - Michail Pishchagin / @mblsha

09/29/2017 at 08:36PM

14
#305 - Le Lycal / @LeLycal

10/04/2017 at 06:00PM

14
#306 - James Lowenthal / @JamesAnthonyLow

10/06/2017 at 08:32PM

14
#307 - RB / @powerage99

10/08/2017 at 10:16PM

14
#308 - Zakaria ANBARI / @abualy4400

10/11/2017 at 02:39PM

14
#309 - Rich Cheng / @sedm0784

10/11/2017 at 04:08PM

14
#310 - jairoandre / @jairoandre

10/11/2017 at 06:46PM

14
#311 - Rafael Souza / @heavyDosesOfDMT

10/11/2017 at 08:20PM

14
#312 - Wolly Woodpecker / @WollyWoodpecker

10/13/2017 at 02:21AM

14
#313 - hidnasio / @hidnasio

10/14/2017 at 03:19PM

14
#314 - Carlos Vigil / @CarlosVixil

10/14/2017 at 11:35PM

14
#315 - VirginiaSteaks / @VirginiaSteaks

10/15/2017 at 12:51PM

14
#316 - thvdburgt / @thvdburgt

10/16/2017 at 10:04AM

14
#317 - mkl / @Hnr1zklc

10/24/2017 at 03:26PM

14
#318 - Florian Kluck / @KluckF

10/24/2017 at 06:29PM

14
#319 - Vim Golf / @golf_vim

10/26/2017 at 02:20AM

14
#320 - r95729 / @r957291

10/27/2017 at 12:05PM

14
#321 - Zoltan Both / @bothzoli

10/28/2017 at 07:48AM

14
#322 - Fabian Müller / @fmueller83

11/02/2017 at 12:04PM

14
#323 - David Rowe / @nigelfloe

11/03/2017 at 07:24PM

14
#324 - budavari / @budavari

11/03/2017 at 09:05PM

14
#325 - Sergii Bondariev / @sergii_bond

11/04/2017 at 12:39AM

14
#326 - Piotr Dołowy / @owy_do

11/06/2017 at 01:28PM

14
#327 - Juuso Valkeejärvi / @jussovalk

11/10/2017 at 08:20PM

14
#328 - Ad Infinitum / @Ad_Inifinitum

11/13/2017 at 06:31AM

14
#329 - じごくのたまねぎ / @namasutedesyo

11/13/2017 at 01:09PM

14
#330 - Benoit Mortgat / @Benoit_Mortgat

11/13/2017 at 04:20PM