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

3268 active golfers, 15578 entries

Leaderboard (lowest score wins):
17
#1051 - Shreyas Balaji / @balaji_shreyas

05/05/2019 at 10:53PM

17
#1052 - Arno / @arnoxmp

05/08/2019 at 04:38PM

17
#1053 - Elcio Ferreira / @elcio

05/15/2019 at 03:02AM

17
#1054 - Tim Dean / @Tmdean

06/06/2019 at 04:02PM

17
#1055 - Billy / @Billy67965753

06/07/2019 at 02:54PM

17
#1056 - Magnus Bjuvensjö / @mbjuvensjo

06/10/2019 at 09:40PM

17
#1057 - Philip / @vCoRezZ

06/13/2019 at 01:33PM

17
#1058 - cinder 🔥 / @cyndrdev

06/27/2019 at 04:52PM

17
#1059 - garry quested / @GQuested

07/04/2019 at 09:04AM

17
#1060 - ixf / @ixfdv

07/05/2019 at 06:09PM

17
#1061 - Gustavo Almeida / @gustaalmeidaws

07/14/2019 at 05:03PM

17
#1062 - Malcolm Sharpe / @blueblimpms

07/17/2019 at 10:21AM

17
#1063 - Nick Yeow / @nickyeow

07/18/2019 at 04:29PM

17
#1064 - Hxhxhrra / @hxhxhrra

07/21/2019 at 03:45PM

17
#1065 - Bradley M. Small / @BradleySmall

07/23/2019 at 07:56PM

17
#1066 - forvimgolf / @forvimgolf2

08/14/2019 at 02:29PM

17
#1067 - vimRunnerUp3000 / @VUp3000

08/17/2019 at 10:41PM

17
#1068 - David Ding / @gnidding

08/28/2019 at 03:32AM

17
#1069 - Brice Letcher / @bricoletc

08/29/2019 at 09:04PM

17
#1070 - greengreen / @greengr09073862

09/01/2019 at 02:24PM

17
#1071 - EL KESRI Othmane / @KesriOthmane

09/18/2019 at 09:44AM

17
#1072 - Sebin Babu / @sarcasticbabu

09/24/2019 at 08:11AM

17
#1073 - Brandon Harrison / @llAboutB

09/24/2019 at 04:07PM

17
#1074 - NeoVimEmacs / @VimNeo

09/29/2019 at 01:03PM

17
#1075 - Jörg Meyer / @JoergMy

10/19/2019 at 08:38PM

17
#1076 - aᵣᵤhᵢ / @aruhi_

10/24/2019 at 12:59AM

17
#1077 - Melvin Cheung / @MelvinCheung

10/30/2019 at 03:32PM

17
#1078 - Lei Kin / @kireinasorakin

11/12/2019 at 03:27PM

17
#1079 - William John Gowers / @_johngowers

11/13/2019 at 11:02AM

17
#1080 - Magnus / @praktiskt

11/17/2019 at 03:30PM