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

2837 active golfers, 13051 entries

Leaderboard (lowest score wins):
26
#2521 - Alec Benzer / @alecbenzer

05/03/2016 at 01:41AM

26
#2522 - Nicola Coretti / @NiCoRetti

05/30/2016 at 07:59AM

26
#2523 - Jez Prime / @jezprime

07/27/2016 at 12:21PM

26
#2524 - F S / @0HdqEYLDZIXXZwj

08/09/2016 at 10:13AM

26
#2525 - Luc Mazardo / @lxtrmz

08/10/2016 at 10:21PM

26
#2526 - Rizart Dokollari / @rdokollari

09/14/2016 at 12:24PM

26
#2527 - Søren / @natlampen

09/20/2016 at 04:04PM

26
#2528 - Tomáš Vik / @vicek22

11/05/2016 at 10:52PM

26
#2529 - Rahul Gupta 🎹 / @pezcoder

11/11/2016 at 07:10PM

26
#2530 - Mick Killianey / @mkillianey

12/27/2016 at 08:28PM

26
#2531 - Nate / @nbrown04

01/07/2017 at 09:07PM

26
#2532 - Filype Pereira / @FilypePereira

01/30/2017 at 10:08AM

26
#2533 - Summer Dhwoj Acharya / @techgaun

04/19/2017 at 06:06PM

26
#2534 - R3s1stanc3 / @r3s1stanc3_

04/23/2017 at 08:38AM

26
#2535 - Way Yan / @WayYan35002527

05/07/2017 at 02:30AM

26
#2536 - William Dankspeare / @will_dankspeare

06/29/2017 at 05:45PM

26
#2537 - David Tilly / @dhtilly

08/12/2017 at 05:43AM

26
#2538 - Steve / @thearctican

08/14/2017 at 05:52PM

26
#2539 - Austin Harrison / @BarbaricSaint

08/23/2017 at 05:39PM

26
#2540 - Rich Hanes / @georgebastille

10/15/2017 at 06:40PM

26
#2541 - kunseikunsei / @kunseikunsei1

10/25/2017 at 11:54AM

26
#2542 - Sébastien Canart / @kokotchY

10/28/2017 at 08:29AM

26
#2543 - Scott Helm / @scott_helm

11/07/2017 at 11:42PM

26
#2544 - Jacob Merizian / @jmerizia

12/11/2017 at 10:41PM

26
#2545 - Adam Townsend / @despendesigns

01/26/2018 at 03:31AM

26
#2546 - TachyG / @Tachypsychique

01/29/2018 at 11:58AM

26
#2547 - Daniel de Vries / @devries_d

02/14/2018 at 09:12PM

26
#2548 - Amanj Sherwany / @amanjpro

03/04/2018 at 05:49PM

26
#2549 - jan4o / @jan4o_2

03/13/2018 at 10:56PM

26
#2550 - Sean Earle / @Hell_Rok

05/03/2018 at 03:26AM