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

3469 active golfers, 16700 entries

Leaderboard (lowest score wins):
23
#2551 - Alan Richards / @alarobric

07/16/2016 at 01:10AM

23
#2552 - Jonas / @Amnesiacu

07/20/2016 at 12:32PM

23
#2553 - no / @masongclayton

08/05/2016 at 07:32AM

23
#2554 - David Aguilera / @davilera

08/11/2016 at 02:11PM

23
#2555 - Nik Sun / @CandySunPlus

08/16/2016 at 06:29AM

23
#2556 - Ewoud Smeur / @Ewoud90

08/22/2016 at 08:48PM

23
#2557 - jweida / @AlbsteinJweida

08/23/2016 at 06:53PM

23
#2558 - Koen Hausmans / @KoenHausmans

08/25/2016 at 08:45AM

23
#2559 - Putente / @Putente_

08/25/2016 at 04:45PM

23
#2560 - Andsmat / @asdsadsandkage

08/26/2016 at 09:17AM

23
#2561 - MathiKathi / @mathikathi

08/31/2016 at 09:47PM

23
#2562 - TETSU / @kaoru6strings

09/01/2016 at 12:24AM

23
#2563 - 吞枣 / @l_tunzao

09/01/2016 at 07:36AM

23
#2564 - tetor / @t_etor

09/10/2016 at 08:28AM

23
#2565 - javier castro / @eusipial

09/12/2016 at 04:04PM

23
#2566 - コウモリ@real / @komori_meip

09/13/2016 at 05:54AM

23
#2567 - davidcgv / @davidcgv

09/13/2016 at 09:45PM

23
#2568 - Bendik Samseth / @BSamseth

09/19/2016 at 01:02PM

23
#2569 - Marco Sterbik / @madbadmax00

09/19/2016 at 08:16PM

23
#2570 - Anthony Ardito / @aardito21

09/25/2016 at 11:22PM

23
#2571 - Mac Clark / @macclark

09/30/2016 at 02:44AM

23
#2572 - Josh Callender / @Saponifi3d

10/15/2016 at 11:42PM

23
#2573 - Billy / @yukuanxu

10/17/2016 at 08:12AM

23
#2574 - Kyoungchin Seo(서경진) / @jiniseo

10/17/2016 at 04:29PM

23
#2575 - Tuomas Poikela / @tuomaspoi

10/17/2016 at 09:49PM

23
#2576 - Gracjan Grala / @gracjangrala

10/28/2016 at 02:06PM

23
#2577 - Chris Cummings / @mistahcummings

10/30/2016 at 11:07PM

23
#2578 - Dhruva Sagar / @dhruvasagar

11/04/2016 at 10:29AM

23
#2579 - Roman / @Po_pi_po

11/05/2016 at 12:44PM

23
#2580 - litze / @litze_

11/07/2016 at 09:05AM