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

2970 active golfers, 13860 entries

Leaderboard (lowest score wins):
17
#841 - Eric Bock / @ericbock

04/28/2017 at 07:24PM

17
#842 - Adrian Salido / @adriansalido

05/02/2017 at 09:26PM

17
#843 - Slobodan Ilic / @a_slobodan

05/04/2017 at 12:26PM

17
#844 - tom patterson / @pattertom

05/18/2017 at 02:37PM

17
#845 - Rodrigo Dorantes G. / @ruydg

05/20/2017 at 08:26PM

17
#846 - Damien Riquet / @driquet

05/30/2017 at 01:49PM

17
#847 - Christian Abbott / @etopixi

05/30/2017 at 02:42PM

17
#848 - Shayne Evans / @shayneevans

06/05/2017 at 02:45AM

17
#849 - Meriadec Pillet / @loomisBroom

06/18/2017 at 05:31PM

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

07/08/2017 at 02:36PM

17
#851 - Kevin Traver / @kevintraver

07/09/2017 at 06:12PM

17
#852 - huho / @huho_xu

07/25/2017 at 02:40AM

17
#853 - mote ✨ / @__mote

07/31/2017 at 01:19PM

17
#854 - Campbell Davis / @Campbell_Dav

08/01/2017 at 11:41PM

17
#855 - humangas / @humangas_

08/07/2017 at 01:55PM

17
#856 - Wilson Alvarez / @Rubonnek

08/14/2017 at 10:35PM

17
#857 - asdf qwerty / @asdfqwe31340568

08/14/2017 at 10:43PM

17
#858 - Marek Jędrzejewski / @cotusiewpisuje

08/23/2017 at 04:44PM

17
#859 - evangilo / @evangilo

08/26/2017 at 11:31AM

17
#860 - Piotr Kowalik / @pietrasagh

08/27/2017 at 09:12PM

17
#861 - David / @Latiku

08/28/2017 at 07:41PM

17
#862 - Lajos Koszti / @Ajnasz

09/01/2017 at 01:17PM

17
#863 - Jeremy Huiskamp / @jeremyhuiskamp

09/02/2017 at 08:28PM

17
#864 - Diego Roccia / @rocciadiego

09/19/2017 at 09:50PM

17
#865 - Nelson Ruivo / @stringbasic

09/21/2017 at 12:03AM

17
#866 - Cristian / @ekr422

09/26/2017 at 08:14PM

17
#867 - Chris Atanasian / @ChrisAtanasian

10/02/2017 at 10:51PM

17
#868 - Charlie / @wookie_giant

10/04/2017 at 11:33AM

17
#869 - Steven Ferrell / @CannyBand77

10/05/2017 at 08:53PM

17
#870 - William Snyders / @iam2391212

10/11/2017 at 12:20AM