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

2705 active golfers, 12428 entries

Leaderboard (lowest score wins):
17
#751 - Max M / @_maxmel

02/22/2017 at 09:14PM

17
#752 - Paulo H Baumann / @PauloBaumann

03/01/2017 at 06:12PM

17
#753 - PL / @petrlaitoch

03/02/2017 at 01:14AM

17
#754 - pheech / @pheech42

03/05/2017 at 07:05PM

17
#755 - Andre Cato / @DreBear800

03/09/2017 at 01:46AM

17
#756 - Dimitar Ivanov / @dimisthoughts

03/11/2017 at 12:14AM

17
#757 - xwle / @xwle

03/11/2017 at 01:34PM

17
#758 - Михаил Борисов / @npoKA3Hbuk

03/13/2017 at 08:07PM

17
#759 - maaaaaaacs / @maaaaaacs

03/22/2017 at 11:39AM

17
#760 - oscar / @zonza_mas

03/23/2017 at 03:26PM

17
#761 - D W / @dweij1

03/29/2017 at 04:17PM

17
#762 - lorem ipsun dolor / @juliogc

04/19/2017 at 05:57PM

17
#763 - Jim Hill / @_jthill

04/27/2017 at 04:33PM

17
#764 - Eric Bock / @ericbock

04/28/2017 at 07:24PM

17
#765 - Adrian Salido / @adriansalido

05/02/2017 at 09:26PM

17
#766 - Slobodan Ilic / @a_slobodan

05/04/2017 at 12:26PM

17
#767 - tom patterson / @pattertom

05/18/2017 at 02:37PM

17
#768 - Rodrigo Dorantes G. / @ruydg

05/20/2017 at 08:26PM

17
#769 - Damien Riquet / @driquet

05/30/2017 at 01:49PM

17
#770 - Christian Abbott / @etopixi

05/30/2017 at 02:42PM

17
#771 - Shayne Evans / @shayneevans

06/05/2017 at 02:45AM

17
#772 - Meriadec Pillet / @loomisBroom

06/18/2017 at 05:31PM

17
#773 - Михаил Добров / @mSuGfwFz2ZNvv5b

07/08/2017 at 02:36PM

17
#774 - Kevin Traver / @kevintraver

07/09/2017 at 06:12PM

17
#775 - huho / @huho_xu

07/25/2017 at 02:40AM

17
#776 - mote ✨ / @__mote

07/31/2017 at 01:19PM

17
#777 - Campbell Davis / @Campbell_Dav

08/01/2017 at 11:41PM

17
#778 - humangas / @humangas_

08/07/2017 at 01:55PM

17
#779 - Wilson Alvarez / @Rubonnek

08/14/2017 at 10:35PM

17
#780 - asdf qwerty / @asdfqwe31340568

08/14/2017 at 10:43PM