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

3459 active golfers, 16636 entries

Leaderboard (lowest score wins):
28
#3211 - Fred Leclerc / @fredleclerc

07/24/2019 at 03:00PM

28
#3212 - Captain Proton / @CaptainProton5

08/01/2019 at 01:56PM

28
#3213 - Alexey Kuntsevich / @jezzarax

09/04/2019 at 09:56AM

28
#3214 - mbonnafon / @mbonnafon1

10/29/2019 at 11:40PM

28
#3215 - Andrei Popescu / @AndreiTheory

12/09/2019 at 12:56PM

28
#3216 - Jan Balangue / @jbalang

01/05/2020 at 04:34AM

28
#3217 - Teddy Chan / @TeddySChan

02/17/2020 at 08:52AM

28
#3218 - 梁(Liang リャン) / @starduliang

03/01/2020 at 12:40PM

28
#3219 - nick / @Xp_Bar

05/01/2020 at 02:33PM

28
#3220 - Samir Khan / @stats_samir

05/15/2020 at 08:12PM

29
#3221 - Srijan Khare / @srijankhare16

04/08/2016 at 12:34AM

29
#3222 - Christopher Wells / @ExcaliburZero_Z

04/19/2016 at 05:30PM

29
#3223 - David Dagino / @ddagino

08/26/2016 at 10:48AM

29
#3224 - Thom Jenkinson / @Thom_Jenks

09/24/2016 at 08:51PM

29
#3225 - George Crabtree / @supercrabtree

11/10/2016 at 06:24AM

29
#3226 - Максим Ливень / @maxlevs

11/20/2016 at 12:27PM

29
#3227 - Morten Hein Tiljeset / @tiljeset

03/11/2017 at 11:05AM

29
#3228 - czheo / @czheo

10/10/2017 at 04:27AM

29
#3229 - Piet 🇳🇱 / @pietvanzoen

10/23/2017 at 02:21PM

29
#3230 - Dan Ravensloft / @ZirconiumX

10/23/2017 at 07:33PM

29
#3231 - かりうむ / @ka1l

11/15/2017 at 11:30AM

29
#3232 - J'aime le pain / @Doshirae

05/08/2018 at 07:15PM

29
#3233 - William I. Olojede / @williamolojede

05/27/2018 at 10:28AM

29
#3234 - Josh Manuel / @joshlatte

05/27/2018 at 04:07PM

29
#3235 - Charuvahan A / @charuvah

07/03/2018 at 03:30AM

29
#3236 - Samidhya Sarker / @desertSniper87

09/06/2018 at 12:42PM

29
#3237 - pebra / @pebrabb

10/22/2018 at 08:20PM

29
#3238 - phoibos92@gmail.com / @phoibos92

11/12/2018 at 04:30PM

29
#3239 - Oran / @Oranav

12/27/2018 at 06:42PM

29
#3240 - Dennis Parchkov / @DParchkov

03/15/2019 at 07:42PM