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
#451 - Fergus Longley / @FergusLongley

08/17/2018 at 03:55PM

14
#452 - Roberto Martínez / @nilp0inter

08/20/2018 at 08:29PM

14
#453 - bluemartian / @bluemartianz59

08/23/2018 at 02:03PM

14
#454 - Chi Jun / @jun13blu

08/28/2018 at 07:18AM

14
#455 - Trey Deitch / @differenceeq

09/01/2018 at 08:35PM

14
#456 - Epecb / @BceEpecb

09/04/2018 at 03:15PM

14
#457 - Rebecca V. / @rxbxccxv

09/15/2018 at 04:49AM

14
#458 - Steve / @fourbitbots

10/08/2018 at 01:24AM

14
#459 - towc / @MateiCopot

10/09/2018 at 10:02AM

14
#460 - Chris Budetti / @ChrisBudetti

10/14/2018 at 01:07PM

14
#461 - Bashar Jaan Khan / @basharjaankhan

10/28/2018 at 05:14AM

14
#462 - Omar / @ombako

10/29/2018 at 04:27PM

14
#463 - jyloup / @jyloup

11/02/2018 at 05:45PM

14
#464 - rye bread / @theryangeary

11/07/2018 at 02:34PM

14
#465 - Wouter Horlings / @Achilleshiel

11/08/2018 at 01:51PM

14
#466 - Kim Hwa Joong / @hanmwoi

11/14/2018 at 12:03PM

14
#467 - Jonathan Cabezas / @John_Harkan

11/25/2018 at 06:41PM

14
#468 - Eliran Bar Noy / @EliranBarNoy

11/27/2018 at 12:56PM

14
#469 - Dax / @zacoxi

11/29/2018 at 01:07AM

14
#470 - Anant Mishra / @anantanni22

11/30/2018 at 07:42AM

14
#471 - Maas Lalani / @maaslalani

12/02/2018 at 08:28PM

14
#472 - Rossi / @mrossinek

12/04/2018 at 07:00PM

14
#473 - shw / @shw9453

12/05/2018 at 06:13AM

14
#474 - Cabal51 / @Cabal51

12/05/2018 at 11:40PM

14
#475 - Ruby Sapphire / @RubySapphire20

12/14/2018 at 02:50AM

14
#476 - lofoneax / @lofoneax

12/14/2018 at 09:49PM

14
#477 - Evyk / @Mr_Evyk

12/16/2018 at 11:10AM

14
#478 - Charlie Le / @charlietle

12/18/2018 at 12:40AM

14
#479 - Steven Bell / @stevenbell

12/19/2018 at 07:10PM

14
#480 - Scott Voyles / @zeitchef

12/25/2018 at 05:09PM