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

3898 active golfers, 18889 entries

Leaderboard (lowest score wins):
18
#1561 - Jon Powers / @JonKPowers

12/13/2020 at 03:14PM

18
#1562 - bladehaze / @bladehaze

12/16/2020 at 10:48AM

18
#1563 - Kha Nguyen / @__ngtrongkha

12/29/2020 at 08:31AM

18
#1564 - tylertucker202 / @tylertucker202

01/19/2021 at 12:30AM

18
#1565 - 蔡徐坤真是爱吃屎 / @Hashub7

01/20/2021 at 10:25AM

18
#1566 - Askhento / @Askhento1

01/27/2021 at 10:19PM

18
#1567 - Jinli Xiao / @jinlixiao

03/10/2024 at 07:04PM

18
#1568 - Neix20 / @Neix20

09/25/2024 at 09:25AM

19
#1569 - Victor Haffreingue / @nobe_4

03/30/2016 at 06:42AM

19
#1570 - Daniel K. / @lan4k

03/30/2016 at 07:15AM

19
#1571 - ushumpei / @ushumpei_

03/30/2016 at 08:02AM

19
#1572 - Fraser Cormack / @frasercrmck

03/30/2016 at 01:45PM

19
#1573 - Walker Boh / @walker_boh

03/30/2016 at 02:56PM

19
#1574 - Mutter Mumble / @muttermumble

03/30/2016 at 03:15PM

19
#1575 - Sean A / @Llanion

03/30/2016 at 07:40PM

19
#1576 - Tyler / @tylerbindon

03/31/2016 at 02:59AM

19
#1577 - Ryan Troxler / @TroxlerRyan

03/31/2016 at 03:06AM

19
#1578 - Mike Waldner / @mawaldne

03/31/2016 at 05:57PM

19
#1579 - Alice Benign / @AliceBenign

03/31/2016 at 09:43PM

19
#1580 - Jonny - Male 2.0.37 / @Jonnytron

04/01/2016 at 01:35AM

19
#1581 - Tact Overflow / @muppling

04/01/2016 at 01:28PM

19
#1582 - Alex Ch / @_AlexCh_

04/01/2016 at 11:19PM

19
#1583 - Luc Trudeau / @LT_Pragmatic

04/02/2016 at 12:33AM

19
#1584 - もく / @Nik_Last

04/02/2016 at 10:26AM

19
#1585 - Matt / @mcr05

04/03/2016 at 01:21PM

19
#1586 - Hannu Kröger / @hkroger

04/04/2016 at 12:29PM

19
#1587 - sitting_like_L / @das_sawyer19l

04/07/2016 at 12:19AM

19
#1588 - エクシル / @sicoh395

04/07/2016 at 02:10PM

19
#1589 - kitsuyui / @kitsuyui

04/08/2016 at 10:22AM

19
#1590 - Robert Carmosino / @Cryptic_Storm

04/09/2016 at 08:35AM