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

2955 active golfers, 13765 entries

Leaderboard (lowest score wins):
17
#931 - Jeremy Wilksch / @jpwilksch

10/31/2018 at 05:48AM

17
#932 - Nedal Kouissi / @n3d41

11/09/2018 at 11:19AM

17
#933 - diwa / @Di_nate_

11/22/2018 at 01:30PM

17
#934 - Mathieu Chataigner / @mchataigner

11/27/2018 at 01:55PM

17
#935 - あすたちん / @astatine0x55

12/01/2018 at 02:35PM

17
#936 - hansim / @hanstartup

12/02/2018 at 11:17AM

17
#937 - Angry Dev / @AngryDev7

12/04/2018 at 10:04PM

17
#938 - Aurélien Blicq / @AurelienBlicq

12/12/2018 at 02:22PM

17
#939 - Fang Yufan / @Fang_Yufan

12/12/2018 at 02:39PM

17
#940 - Bennett / @bennettbackward

12/20/2018 at 11:44AM

17
#941 - Ackman Syntax Error / @AckmanSux

12/21/2018 at 08:00PM

17
#942 - Greg Anders / @gregory_anders

12/28/2018 at 04:48PM

17
#943 - Tinko Minko / @tandikula

01/30/2019 at 08:42PM

17
#944 - Wei Wen / @goweiwen

02/14/2019 at 02:38AM

17
#945 - sloppypapi / @sloppypapi5

02/20/2019 at 07:31PM

17
#946 - Kristian Haug / @krimhaug

02/26/2019 at 12:54PM

17
#947 - Roger Stoltz / @rogsto1

02/27/2019 at 08:19PM

17
#948 - ثامر / @julienborghetti

03/04/2019 at 09:29PM

17
#949 - wanghbxxxx / @wanghbxxxx

03/28/2019 at 01:02PM

17
#950 - Tucker Hayden / @TuckNRollio

04/17/2019 at 03:13PM

17
#951 - mag1cal.unic0rn / @unic0rn_mag1cal

04/18/2019 at 01:36PM

17
#952 - Bruce Woodward / @b00ffer

04/21/2019 at 08:41AM

17
#953 - shredded / @shredded

04/23/2019 at 09:43PM

17
#954 - Shreyas Balaji / @balaji_shreyas

05/05/2019 at 10:53PM

17
#955 - Arno / @arnoxmp

05/08/2019 at 04:38PM

17
#956 - Elcio Ferreira / @elcio

05/15/2019 at 03:02AM

17
#957 - Tim Dean / @Tmdean

06/06/2019 at 04:02PM

17
#958 - Billy / @Billy67965753

06/07/2019 at 02:54PM

17
#959 - Magnus Bjuvensjö / @mbjuvensjo

06/10/2019 at 09:40PM

17
#960 - Philip / @vCoRezZ

06/13/2019 at 01:33PM