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

3467 active golfers, 16689 entries

Leaderboard (lowest score wins):
15
#691 - Baine Wedlock / @BaineWedlock

09/06/2019 at 10:07AM

15
#692 - dicekest / @dicekest

09/14/2019 at 03:19PM

15
#693 - Cassandra / @kascein

09/17/2019 at 06:37AM

15
#694 - Khamnhoui-Boulom / @k_nhoui

09/17/2019 at 03:08PM

15
#695 - Rui Xue / @ruirayxue

10/01/2019 at 05:56AM

15
#696 - dahan / @dahan74265266

10/08/2019 at 09:22AM

15
#697 - Lory / @Lory46845742

10/29/2019 at 03:13PM

15
#698 - Tefe / @tefetic

01/01/2020 at 10:35PM

15
#699 - lev / @nouvelliu

01/09/2020 at 03:53AM

15
#700 - meow / @xckodut

01/17/2020 at 05:44PM

15
#701 - Rune Warhuus / @DinkDonkNorway

01/21/2020 at 11:43AM

15
#702 - stretchy / @stretch11013132

02/16/2020 at 03:47AM

15
#703 - KingYames / @JamesZeHunter

02/17/2020 at 02:46AM

15
#704 - perTheGolfer / @GolferPer

02/17/2020 at 05:03PM

15
#705 - Ard / @kokojarjar

02/18/2020 at 11:53AM

15
#706 - Strages / @Strages2k

02/23/2020 at 12:12AM

15
#707 - floyd / @floyd10086

02/27/2020 at 05:29AM

15
#708 - Nathan Hartman / @hnathan918

04/01/2020 at 10:31PM

15
#709 - The Legy / @thelegy

04/24/2020 at 12:12AM

15
#710 - Anay Karnik / @anay_karnik

05/08/2020 at 12:58PM

15
#711 - Neil Earnshaw / @neilearnshaw

05/08/2020 at 02:16PM

15
#712 - Bhagwan / @El_Bhagwan

05/11/2020 at 02:58AM

15
#713 - Sven Kõiv / @KoivSven

05/17/2020 at 10:07AM

15
#714 - 𝓂𝒿𝓇 ∋ ℝ / @real_mjr

05/26/2020 at 01:17PM

15
#715 - JLObject / @powful_panda

07/01/2020 at 06:39PM

15
#716 - Alexandre MERLIN / @AlxMerlin

07/02/2020 at 05:18PM

16
#717 - Saki Gw / @Sakigw

03/31/2016 at 03:59PM

16
#718 - matthieu le grix / @mlegrix

05/01/2016 at 01:09PM

16
#719 - Petro Тrouq / @zulolosi

06/14/2016 at 08:31PM

16
#720 - Yann / @yannstad

03/06/2017 at 10:03PM