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

2771 active golfers, 12725 entries

Leaderboard (lowest score wins):
15
#541 - Sebastian Korten / @FlashKorten

10/12/2018 at 04:28PM

15
#542 - Commi / @hellocommi

11/23/2018 at 07:29PM

15
#543 - 波波 / @sbob87

01/04/2019 at 06:08AM

15
#544 - Fl4t / @Fl4t

01/07/2019 at 08:02PM

15
#545 - Federico / @gselsette

01/23/2019 at 12:11AM

15
#546 - Daniel Steinberg / @dstein64

01/29/2019 at 05:59AM

15
#547 - Andy / @andm1992

02/28/2019 at 09:14PM

15
#548 - zh0ng / @zh00ng

03/06/2019 at 07:49AM

15
#549 - T A / @SirAviles

03/17/2019 at 09:57PM

15
#550 - Francois Urquhart / @LostUrquhart

05/12/2019 at 08:35PM

15
#551 - Nick Anishenko / @NAnishenko

05/21/2019 at 10:37AM

15
#552 - Adam Soltys / @adamsoltys

06/07/2019 at 03:15AM

15
#553 - Ben / @ben_g_thomas

06/22/2019 at 10:02AM

16
#554 - Saki Gw / @Sakigw

03/31/2016 at 03:59PM

16
#555 - matthieu le grix / @mlegrix

05/01/2016 at 01:09PM

16
#556 - Petro Тrouq / @zulolosi

06/14/2016 at 08:31PM

16
#557 - Yann / @yannstad

03/06/2017 at 10:03PM

16
#558 - Matthias Klauer / @M_Klauer

03/20/2017 at 09:22PM

16
#559 - Alex Linden / @alexwlinden1

04/19/2017 at 05:43PM

16
#560 - Alec Goebel / @bewarethegrue

05/01/2017 at 03:55PM

16
#561 - Etienne de Maricourt / @edemaric

05/02/2017 at 12:07PM

16
#562 - Rami Hovi / @hacker_lawyer

05/07/2017 at 10:57AM

16
#563 - Vladislav Supalov / @vsupalov

05/12/2017 at 10:45AM

16
#564 - Ming Dai / @MingDai2

05/21/2017 at 03:52PM

16
#565 - Brian Hall / @_bruab_

06/15/2017 at 05:17PM

16
#566 - moritz / @moritz45081535

06/18/2017 at 12:20PM

16
#567 - Julian Felix / @h4wked

06/27/2017 at 03:25PM

16
#568 - 杨洋 / @176795444

06/30/2017 at 01:33PM

16
#569 - Rowan Tree / @RowanTr88447528

07/21/2017 at 05:33AM

16
#570 - 徐学健 / @zebrallel

08/18/2017 at 03:49AM