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

2715 active golfers, 12472 entries

Leaderboard (lowest score wins):
17
#781 - humangas / @humangas_

08/07/2017 at 01:55PM

17
#782 - Wilson Alvarez / @Rubonnek

08/14/2017 at 10:35PM

17
#783 - asdf qwerty / @asdfqwe31340568

08/14/2017 at 10:43PM

17
#784 - Marek Jędrzejewski / @cotusiewpisuje

08/23/2017 at 04:44PM

17
#785 - evangilo / @evangilo

08/26/2017 at 11:31AM

17
#786 - Piotr Kowalik / @pietrasagh

08/27/2017 at 09:12PM

17
#787 - David / @Latiku

08/28/2017 at 07:41PM

17
#788 - Lajos Koszti / @Ajnasz

09/01/2017 at 01:17PM

17
#789 - Jeremy Huiskamp / @jeremyhuiskamp

09/02/2017 at 08:28PM

17
#790 - Diego Roccia / @rocciadiego

09/19/2017 at 09:50PM

17
#791 - Nelson Ruivo / @stringbasic

09/21/2017 at 12:03AM

17
#792 - Cristian / @ekr422

09/26/2017 at 08:14PM

17
#793 - Chris Atanasian / @ChrisAtanasian

10/02/2017 at 10:51PM

17
#794 - Charlie / @wookie_giant

10/04/2017 at 11:33AM

17
#795 - Steven Ferrell / @CannyBand77

10/05/2017 at 08:53PM

17
#796 - William Snyders / @iam2391212

10/11/2017 at 12:20AM

17
#797 - merphant / @merphant

10/11/2017 at 03:50PM

17
#798 - Ron Alexssen / @Ralexhere

10/11/2017 at 10:11PM

17
#799 - Joshua Lin / @Springbottom

10/13/2017 at 12:34AM

17
#800 - Mike Reinhardt / @subitoforte

10/16/2017 at 08:29PM

17
#801 - MuadDev / @MuadDev

10/17/2017 at 03:01PM

17
#802 - Royce Silvester / @RoyceSilvester

10/22/2017 at 07:49AM

17
#803 - Eric Söderström / @eksoderstrom

11/06/2017 at 11:09PM

17
#804 - Ruben De Smet / @rubdos

11/09/2017 at 08:41PM

17
#805 - Jonathan Johnson / @jonmarkjohnson

11/11/2017 at 10:00PM

17
#806 - Eric Johnson / @dej79

11/12/2017 at 03:58PM

17
#807 - Dave / @RealDaveMancuso

11/26/2017 at 06:01AM

17
#808 - M / @michal36b

12/04/2017 at 11:23PM

17
#809 - John Gadbois / @johngadbois

12/12/2017 at 11:51AM

17
#810 - gink / @anagiwa

12/15/2017 at 11:10AM