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

3455 active golfers, 16617 entries

Leaderboard (lowest score wins):
19
#1771 - Torstein Ørbeck Eliassen / @torsteoe

02/22/2020 at 04:06PM

19
#1772 - r4d1um / @r4d1um

03/11/2020 at 10:23AM

19
#1773 - Ryan Nevius / @ryannevius

03/16/2020 at 09:20AM

19
#1774 - Greger Cronquist / @gregerc

03/16/2020 at 10:33PM

19
#1775 - Ivan / @SpiritHNTR

03/18/2020 at 11:15AM

19
#1776 - Under Blown / @iovuio

03/18/2020 at 12:07PM

19
#1777 - Sviatoslav / @Sviatos84212895

03/23/2020 at 11:25AM

19
#1778 - Ticktockrobotsnot99 / @akashrrao

04/05/2020 at 05:00AM

19
#1779 - 陳冠辰 / @ToMmyDongChen

04/10/2020 at 02:49AM

19
#1780 - zesk06 / @zesk06

04/19/2020 at 07:01AM

19
#1781 - Sai Hemanth / @saihemanth9019

04/21/2020 at 06:38AM

19
#1782 - fortran0303 / @fortran0303

04/23/2020 at 01:52PM

19
#1783 - Antoine Colson / @antoinefcolson

05/06/2020 at 06:02AM

19
#1784 - haipeng li / @HaipengLie

05/11/2020 at 10:53AM

19
#1785 - Adam Bumpus / @bumpus_adam

05/17/2020 at 12:16AM

19
#1786 - Ali Aslan / @AliAsla95742367

05/19/2020 at 05:29AM

19
#1787 - pady. 🇪🇺 🇩🇪 🇷🇴 / @hundertzwoelf_

05/26/2020 at 02:04PM

19
#1788 - Eric Banisadr / @ebanisadr

05/29/2020 at 04:24AM

19
#1789 - natasha / @CallMeNatchos

06/01/2020 at 01:06AM

19
#1790 - Fluidjax / @fluidjax

06/05/2020 at 09:33PM

19
#1791 - jc52766 / @jc52766

06/11/2020 at 10:41PM

19
#1792 - khedd / @sinan_khedd

06/13/2020 at 05:04PM

19
#1793 - Reynald Havard / @rey_ha

06/15/2020 at 11:27PM

19
#1794 - hiker / @hiker12829244

06/24/2020 at 08:45AM

19
#1795 - Felix / @motorente

06/24/2020 at 12:51PM

19
#1796 - Eliseo / @Eliseohh_A

07/02/2020 at 03:50AM

19
#1797 - Deepak Talan / @d02d33pak

07/03/2020 at 10:45AM

19
#1798 - The Oalrus / @mizay7

07/03/2020 at 05:59PM

19
#1799 - L Z / @unidevel

07/06/2020 at 09:00AM

19
#1800 - Ravi S Sinha / @ambidextrousTx

07/06/2020 at 09:44PM