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

3024 active golfers, 14196 entries

Leaderboard (lowest score wins):
24
#2551 - Brett Sanders / @brettsanders08

05/08/2018 at 02:41AM

24
#2552 - z0c / @zerocabal

06/02/2018 at 01:17PM

24
#2553 - Vimg / @Vimg10

06/06/2018 at 12:09AM

24
#2554 - qwertyu / @qwertyu78679259

06/12/2018 at 03:21AM

24
#2555 - Andrew Peterson / @FungalRaincloud

07/26/2018 at 11:36PM

24
#2556 - Sachin Akula / @AkulaSachin

08/02/2018 at 05:16PM

24
#2557 - Nikita Pupko / @LazyNick7

08/02/2018 at 08:34PM

24
#2558 - 王韋勝 / @wilson85071

08/19/2018 at 05:29PM

24
#2559 - Lee Saville / @LeeSaville

09/02/2018 at 08:01PM

24
#2560 - prince ducaca / @prince_du_caca

09/27/2018 at 08:54PM

24
#2561 - Aasim Kandrikar / @KandrikarAasim

10/01/2018 at 06:15PM

24
#2562 - [@malukenho; ☧] |> List.map post / @malukenho

10/20/2018 at 12:02AM

24
#2563 - Grant Gonyer / @grantgonyer

10/22/2018 at 01:28PM

24
#2564 - Julius / @cShortForC

10/24/2018 at 07:20PM

24
#2565 - dorpo / @dorpo2

11/01/2018 at 04:33PM

24
#2566 - editor3D / @editor3D

11/12/2018 at 03:02PM

24
#2567 - Hachemi / @HachemiHarizi

11/12/2018 at 10:40PM

24
#2568 - Omar Zeidan / @OZeidan97

11/13/2018 at 11:46AM

24
#2569 - Jurica / @Jurica34581259

11/14/2018 at 11:12PM

24
#2570 - tuyen / @tuyen66827418

11/18/2018 at 04:48PM

24
#2571 - Ainsley McGrath / @whole_grainsley

12/24/2018 at 07:27AM

24
#2572 - Mat / @matpbo

01/09/2019 at 05:13PM

24
#2573 - Bao Dang / @baodang02

01/11/2019 at 10:10AM

24
#2574 - joe / @wyohjoe

01/23/2019 at 04:27PM

24
#2575 - Grorco / @grorco

02/14/2019 at 03:54PM

24
#2576 - Sam Miller / @sam_miller93

02/16/2019 at 07:42PM

24
#2577 - Sébastien Lavoie / @sgdlavoie

03/03/2019 at 05:30AM

24
#2578 - Bruce.Z.Lee / @cvilo4ZLK3OD9WG

03/04/2019 at 04:17AM

24
#2579 - landyak / @landyak1

03/16/2019 at 03:17PM

24
#2580 - Parsa Amini / @ParsaAmini

03/16/2019 at 07:03PM