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

3880 active golfers, 18798 entries

Leaderboard (lowest score wins):
14
#691 - FunkyKoval / @FunkyKoval10

09/16/2020 at 04:21PM

14
#692 - Aaron Cooley / @acoolz

09/20/2020 at 02:09PM

14
#693 - Chris Conte / @chriscconte

10/02/2020 at 06:42PM

14
#694 - Adrien Lemaire ドリ / @Adrien_Lemaire_

10/03/2020 at 10:41AM

14
#695 - genoskill / @Genoskill

10/03/2020 at 12:55PM

14
#696 - Tuan Tran / @tuantran201310

10/04/2020 at 07:41PM

14
#697 - lamtt77 / @lamtt77

10/07/2020 at 10:49AM

14
#698 - ✨ / @startresse

10/07/2020 at 08:18PM

14
#699 - Nazrulla / @Nazrull37098421

10/10/2020 at 10:09AM

14
#700 - Hristo Kamenov / @KamenovHristo

10/10/2020 at 03:38PM

14
#701 - Dmitry Antonyuk / @dm_antonyuk

10/15/2020 at 02:50PM

14
#702 - Herman Stavelin / @HsBruker

10/16/2020 at 12:10PM

14
#703 - Leland Paul Kusmer / @lelandpaul

10/20/2020 at 03:04PM

14
#704 - John Watson / @JRWats0n

10/31/2020 at 03:26AM

14
#705 - quemeraisc / @quemeraisc

11/04/2020 at 04:13PM

14
#706 - Cornelius Roemer / @CorneliusRoemer

11/05/2020 at 06:23PM

14
#707 - FrolPaderin / @FPaderin

11/08/2020 at 07:42AM

14
#708 - vimspam / @vimspam

11/09/2020 at 04:11AM

14
#709 - Ansel Bobrow / @garlicWharfRat

11/12/2020 at 06:05PM

14
#710 - David Kutschke / @D4KU_

11/14/2020 at 07:34PM

14
#711 - Jacques Donnelly / @Donnll

11/20/2020 at 04:58PM

14
#712 - Hugh / @haquaman

11/24/2020 at 08:50PM

14
#713 - hepebexè / @hepebexe

11/25/2020 at 07:22PM

14
#714 - __VimGolfer__ / @VimGolfer19

11/26/2020 at 10:07AM

14
#715 - Ryan Way / @RyanWay16

12/09/2020 at 05:11AM

14
#716 - pherapont / @pherapont1

12/17/2020 at 05:32AM

14
#717 - f a / @5eraf

12/17/2020 at 06:57AM

14
#718 - Brian :| / @Seeemplicity

12/21/2020 at 04:17PM

14
#719 - justinhj / @justinhj

12/24/2020 at 07:06AM

14
#720 - Jon Krause / @jkrause314

12/24/2020 at 05:25PM