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

2503 active golfers, 11390 entries

Leaderboard (lowest score wins):
14
#391 - Channing Chen / @jslgycm

03/19/2018 at 06:35AM

14
#392 - 煎饼果子 / @melongirl_SH

03/19/2018 at 11:55AM

14
#393 - Oleg Skillup / @skill_up

03/19/2018 at 10:07PM

14
#394 - Skyler Soss / @Skyb0rg

03/26/2018 at 09:53PM

14
#395 - gerry / @ggaonag

03/28/2018 at 11:16PM

14
#396 - vimthrowaway / @vimgolf_throw

03/29/2018 at 07:01AM

14
#397 - Vim Golf / @VimgolfVim

03/30/2018 at 03:03AM

14
#398 - Subrata Sarker / @picklumithu

03/30/2018 at 02:46PM

14
#399 - platypusDancing / @platypusDancing

04/02/2018 at 06:19PM

14
#400 - chriskuck / @chriskuck

04/02/2018 at 06:50PM

14
#401 - Peter Kling / @pit_kling

04/09/2018 at 08:22PM

14
#402 - Alexander Kaupanin / @noRerih

04/10/2018 at 06:58PM

14
#403 - amal / @cdsudama

04/13/2018 at 01:13PM

14
#404 - Jy / @PHP_is_the_best

04/15/2018 at 06:54AM

14
#405 - Jack Shannon / @grokmotive

04/28/2018 at 09:08AM

14
#406 - Leonardo Pistone / @lepistone

04/29/2018 at 11:29AM

14
#407 - Milan Ľudma / @turiec_

04/29/2018 at 06:23PM

14
#408 - mdgill / @mdgill

05/03/2018 at 02:03PM

14
#409 - John Honaker / @MisterMentat

05/03/2018 at 05:34PM

14
#410 - Robopengwin / @robopengwin

05/03/2018 at 09:02PM

14
#411 - golfer / @golfer30767399

05/04/2018 at 01:00AM

14
#412 - Alexey Shiklomanov / @ashiklom711

05/04/2018 at 12:50PM

14
#413 - Alain / @carpikes

05/04/2018 at 01:18PM

14
#414 - Alex Norman / @Aarleks

05/05/2018 at 08:46AM

14
#415 - vimgolfdummy / @vimgolfdummy

05/05/2018 at 02:06PM

14
#416 - Quade Morrison / @quade_morrison

05/07/2018 at 12:07AM

14
#417 - Anders / @cptand

05/07/2018 at 05:00PM

14
#418 - Iury Adones / @Iury_Adones

05/08/2018 at 02:02PM

14
#419 - wind2412 / @wind944797358

05/27/2018 at 10:23AM

14
#420 - Daniël De Koker / @daniel_koker

06/02/2018 at 04:17PM