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

2955 active golfers, 13765 entries

Leaderboard (lowest score wins):
16
#691 - Antoine Gagelin / @AntoineGagelin

03/29/2019 at 03:51PM

16
#692 - Dryvnt / @Dryvnt

04/04/2019 at 12:39PM

16
#693 - smillence / @smillence1

04/10/2019 at 05:43AM

16
#694 - Ben Weinstein-Raun / @benwr

04/11/2019 at 06:00AM

16
#695 - Gitsnik / @dracyrys

04/18/2019 at 02:37PM

16
#696 - ow / @ow34480012

04/30/2019 at 07:25PM

16
#697 - Guilherme Henrique C / @todolar

05/02/2019 at 06:56AM

16
#698 - eric huang / @EricGodhand4826

05/04/2019 at 05:32PM

16
#699 - Manos Koutselakis / @koutselakis_m

05/04/2019 at 11:47PM

16
#700 - Paul Yates / @PYates77

05/07/2019 at 02:27PM

16
#701 - test / @test35595941

05/09/2019 at 07:49PM

16
#702 - Pauli Taipale / @pauli_taipale

05/10/2019 at 01:04AM

16
#703 - Fiffy / @sr21486642

05/15/2019 at 06:58AM

16
#704 - will / @willpnw

05/15/2019 at 10:29PM

16
#705 - edulim / @edulim2

05/16/2019 at 02:43AM

16
#706 - laerling / @laerling1

06/03/2019 at 05:46PM

16
#707 - Jerry Wu / @AzureSpectra

06/06/2019 at 05:22PM

16
#708 - Sæther / @baltre1

06/06/2019 at 11:14PM

16
#709 - James Whitlock / @Keitarusm

06/07/2019 at 03:36PM

16
#710 - overlookedhashmap / @overlookedhash1

06/07/2019 at 10:28PM

16
#711 - Hugo Tai / @HugoTai100

06/11/2019 at 04:56AM

16
#712 - Charlie OConor / @charlieoconor

06/11/2019 at 10:03PM

16
#713 - John Herman Schwit / @JohnHermanSchwi

06/23/2019 at 12:32AM

16
#714 - Denis / @4NNTGudvin

07/10/2019 at 02:50PM

16
#715 - aurelian ardeleanu / @inquarto

07/11/2019 at 07:36AM

16
#716 - Neil Struthers / @struthersneil

07/15/2019 at 03:56PM

16
#717 - James Raubenheimer / @jamzrob

07/18/2019 at 10:57PM

16
#718 - taka / @takaoutputblog

07/20/2019 at 04:16AM

16
#719 - John Contad! / @JohnContad

07/29/2019 at 02:08AM

16
#720 - Jonathan Browning / @yungjig90

07/30/2019 at 07:59PM