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

3024 active golfers, 14196 entries

Leaderboard (lowest score wins):
17
#961 - Tinko Minko / @tandikula

01/30/2019 at 08:42PM

17
#962 - Wei Wen / @goweiwen

02/14/2019 at 02:38AM

17
#963 - sloppypapi / @sloppypapi5

02/20/2019 at 07:31PM

17
#964 - Kristian Haug / @krimhaug

02/26/2019 at 12:54PM

17
#965 - Roger Stoltz / @rogsto1

02/27/2019 at 08:19PM

17
#966 - ثامر / @julienborghetti

03/04/2019 at 09:29PM

17
#967 - wanghbxxxx / @wanghbxxxx

03/28/2019 at 01:02PM

17
#968 - Tucker Hayden / @TuckNRollio

04/17/2019 at 03:13PM

17
#969 - mag1cal.unic0rn / @unic0rn_mag1cal

04/18/2019 at 01:36PM

17
#970 - Bruce Woodward / @b00ffer

04/21/2019 at 08:41AM

17
#971 - shredded / @shredded

04/23/2019 at 09:43PM

17
#972 - Shreyas Balaji / @balaji_shreyas

05/05/2019 at 10:53PM

17
#973 - Arno / @arnoxmp

05/08/2019 at 04:38PM

17
#974 - Elcio Ferreira / @elcio

05/15/2019 at 03:02AM

17
#975 - Tim Dean / @Tmdean

06/06/2019 at 04:02PM

17
#976 - Billy / @Billy67965753

06/07/2019 at 02:54PM

17
#977 - Magnus Bjuvensjö / @mbjuvensjo

06/10/2019 at 09:40PM

17
#978 - Philip / @vCoRezZ

06/13/2019 at 01:33PM

17
#979 - cinder 🔥 / @cyndrdev

06/27/2019 at 04:52PM

17
#980 - garry quested / @GQuested

07/04/2019 at 09:04AM

17
#981 - ixf / @ixfdv

07/05/2019 at 06:09PM

17
#982 - Gustavo Almeida / @gustaalmeidaws

07/14/2019 at 05:03PM

17
#983 - Malcolm Sharpe / @blueblimpms

07/17/2019 at 10:21AM

17
#984 - Nick Yeow / @nickyeow

07/18/2019 at 04:29PM

17
#985 - Hxhxhrra / @hxhxhrra

07/21/2019 at 03:45PM

17
#986 - Bradley M. Small / @BradleySmall

07/23/2019 at 07:56PM

17
#987 - forvimgolf / @forvimgolf2

08/14/2019 at 02:29PM

17
#988 - vimRunnerUp3000 / @VUp3000

08/17/2019 at 10:41PM

17
#989 - David Ding / @gnidding

08/28/2019 at 03:32AM

17
#990 - Brice Letcher / @bricoletc

08/29/2019 at 09:04PM