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

3450 active golfers, 16585 entries

Leaderboard (lowest score wins):
27
#3151 - Andy Gnias / @GniTheSciGuy

07/25/2019 at 11:31PM

27
#3152 - Mark Winckle / @Winckle

08/23/2019 at 09:56PM

27
#3153 - Brian / @atav32

08/31/2019 at 12:40AM

27
#3154 - Kjaku / @Kondziorf

09/04/2019 at 07:41PM

27
#3155 - Yasky / @Yaasky

10/23/2019 at 07:49PM

27
#3156 - Nico W. / @AirlessAtmo

11/12/2019 at 01:05PM

27
#3157 - Toby R / @TobyRet

01/07/2020 at 11:15PM

27
#3158 - Ron Peters / @thepistonhead

02/14/2020 at 08:50PM

27
#3159 - Xor547 / @Xor547

02/18/2020 at 02:04PM

27
#3160 - Kairew / @Kairew1

02/18/2020 at 02:43PM

27
#3161 - Zachary Lee / @abstractlyZach

04/22/2020 at 04:15AM

27
#3162 - Fukunishi Hashitoku / @FHashitoku

05/08/2020 at 03:13PM

27
#3163 - ол ов о / @2dTyjFurC1MKMvd

05/14/2020 at 09:25AM

27
#3164 - zeko / @zeknife

05/27/2020 at 04:25PM

27
#3165 - Ксения / @Xvluk

06/02/2020 at 03:21PM

28
#3166 - Jörg Herbst / @terrible_herbst

06/04/2016 at 07:55PM

28
#3167 - Richard Laub / @RWLaub91

07/22/2016 at 03:05AM

28
#3168 - lucas / @rept357

08/24/2016 at 01:43PM

28
#3169 - Patrick J McDonough / @snake_VsCamel

09/05/2016 at 03:09AM

28
#3170 - Christoph Wong / @ctophwong

10/15/2016 at 11:07AM

28
#3171 - Benoît Labaere / @b_labaere

01/03/2017 at 09:18PM

28
#3172 - Alex Moorman / @dabearsxander

01/05/2017 at 11:46PM

28
#3173 - racffee / @RacffedeRacffee

01/15/2017 at 05:29PM

28
#3174 - NG / @dueyfinster

02/07/2017 at 04:40PM

28
#3175 - Alec Zhang / @alecjzhang

04/18/2017 at 10:44PM

28
#3176 - raffitz / @raffitz

04/19/2017 at 05:25PM

28
#3177 - Alexander Gryson / @agryson

05/01/2017 at 01:48PM

28
#3178 - A1m / @A1mGG

06/05/2017 at 03:07AM

28
#3179 - The Jamaican Bobsled / @jamaicanbobsled

09/03/2017 at 01:21PM

28
#3180 - Barespamtak / @barespamtak

09/06/2017 at 08:57AM