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
#541 - Martin Delille / @martinodelilo

08/13/2019 at 05:51PM

14
#542 - Jake Treacher / @jaketreacher

08/14/2019 at 11:10AM

14
#543 - Adam Hartz / @awareofnow

08/18/2019 at 02:17AM

14
#544 - David Johnston / @nuts4nuts4nuts

08/23/2019 at 09:34PM

14
#545 - sundeep routhu / @sundeep12005

08/29/2019 at 05:29PM

14
#546 - Andrew Blokzyl / @linuxKd

08/29/2019 at 07:41PM

14
#547 - Bill Ruddock / @biinari

09/01/2019 at 12:54AM

14
#548 - AndrzejWasowski@scholar.social 🌻 🕊️ / @AndrzejWasowski

09/06/2019 at 12:50PM

14
#549 - Andac Safa / @SanDForcE94

09/11/2019 at 08:05AM

14
#550 - vimgolfer / @vimgolfer7

09/20/2019 at 04:43AM

14
#551 - nefforr / @yayamip

09/25/2019 at 07:44AM

14
#552 - Chen-Hung Wu / @utah12005

09/28/2019 at 04:58AM

14
#553 - Honza Uhlík / @JanUhlik

10/04/2019 at 10:07PM

14
#554 - Soptik / @Soptik3

10/06/2019 at 10:56PM

14
#555 - Phu Ngo 🌐 / @PhuNgo_K

10/11/2019 at 05:22PM

14
#556 - ^spew$ / @spew79241369

10/12/2019 at 10:04PM

14
#557 - kkscr / @kkscr1

10/13/2019 at 01:04PM

14
#558 - Tamás Kárándi / @tkarandi

10/13/2019 at 06:17PM

14
#559 - Erik Engstrom / @eengstrom

10/15/2019 at 03:25AM

14
#560 - leo / @leo28356948

10/17/2019 at 05:27AM

14
#561 - Ivan Volosyuk / @IvanVolosyuk

10/19/2019 at 06:37AM

14
#562 - Renan Cidale / @rnescalz

10/20/2019 at 04:16PM

14
#563 - harmony_krieg / @harmony_krieg

10/20/2019 at 06:40PM

14
#564 - Howl / @Howlxx55

10/23/2019 at 02:26PM

14
#565 - yousef Ibrahim / @YucefIbrahim

10/24/2019 at 07:43AM

14
#566 - Gregory Furter / @gfurter

10/25/2019 at 04:33PM

14
#567 - Frank Scholl / @fhscholl

10/27/2019 at 05:04AM

14
#568 - Quentin Fox / @quentinbfox_

10/29/2019 at 05:49AM

14
#569 - Harrison / @ardentcow

10/31/2019 at 03:03AM

14
#570 - skamgolf / @skamgolf

11/01/2019 at 01:56AM