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

3068 active golfers, 14429 entries

Leaderboard (lowest score wins):
23
#2401 - Sean / @seanwbehan

05/04/2018 at 07:28AM

23
#2402 - Wolfgang M. / @lebenlechzer

05/04/2018 at 12:34PM

23
#2403 - MarinAkaFulk / @MarinAkaFulk

05/08/2018 at 10:21PM

23
#2404 - Kenneth Flak / @FlakKenneth

05/11/2018 at 08:23PM

23
#2405 - Vincent Riesop / @VincentRiesop

05/12/2018 at 09:40PM

23
#2406 - Wasistdasfuer1Welt / @Wasistdasfuer1W

05/14/2018 at 11:07AM

23
#2407 - りんご姫 / @yharuhi39

05/22/2018 at 09:32PM

23
#2408 - tue2truong / @tue2truong1

05/25/2018 at 12:50PM

23
#2409 - Mayank Suman / @mayank_suman

05/30/2018 at 07:09AM

23
#2410 - William Bowers / @wbowers

06/04/2018 at 02:17AM

23
#2411 - Kyle Partridge / @partkyle

06/06/2018 at 08:39PM

23
#2412 - Michael Dürrleder / @MichaelDrrleder

06/07/2018 at 07:36PM

23
#2413 - Jules Wichita / @octarlol

06/07/2018 at 09:14PM

23
#2414 - Daniel Liden / @danjliden

06/08/2018 at 06:17PM

23
#2415 - Sourav Mitra / @SouravMitraAbhi

06/10/2018 at 04:14AM

23
#2416 - Young-geun Kim / @6a503ca06306464

06/10/2018 at 09:54PM

23
#2417 - trafficone / @trafficone

06/21/2018 at 10:09PM

23
#2418 - Jeremiah Smith / @jeremiah4smith

06/22/2018 at 02:40PM

23
#2419 - Paul Jones / @thepauljones

06/22/2018 at 08:55PM

23
#2420 - Šimon Mandlík / @simon_mandlik

06/27/2018 at 10:56AM

23
#2421 - lilei0825 / @lilei08251

06/28/2018 at 07:46AM

23
#2422 - miro astore / @miroastore

07/04/2018 at 04:21AM

23
#2423 - Roman / @cdxyz

07/04/2018 at 08:26PM

23
#2424 - Chris / @143Pi

07/15/2018 at 11:30AM

23
#2425 - 최종원 / @lastone9182

07/15/2018 at 01:06PM

23
#2426 - Julian Okuyiga / @julianokuyiga

07/24/2018 at 06:59PM

23
#2427 - Vuong Tran / @VuongTran12

07/26/2018 at 09:53AM

23
#2428 - maxime he / @he_maxime

08/11/2018 at 09:05AM

23
#2429 - Ian Cook / @IanCook99259891

08/30/2018 at 07:29AM

23
#2430 - Manuel Oswald / @_maoswald

09/02/2018 at 11:54AM