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

3452 active golfers, 16600 entries

Leaderboard (lowest score wins):
16
#871 - ace_of_art_club / @aceofartclub1

12/17/2019 at 04:38PM

16
#872 - hokonch / @hokonch

12/24/2019 at 05:15PM

16
#873 - caffeineism / @caffeineism

01/06/2020 at 01:36AM

16
#874 - I / @isxln

01/14/2020 at 05:28PM

16
#875 - li / @li94938987

01/23/2020 at 06:27PM

16
#876 - Thomas Jung / @ThomasAJung

01/24/2020 at 03:48PM

16
#877 - Linghao Du / @LinghaoDu

02/10/2020 at 05:26AM

16
#878 - Ali Kero / @stochastist

02/13/2020 at 09:50PM

16
#879 - Rollo Jenkins / @rollo_jenkins

02/18/2020 at 05:54PM

16
#880 - Vetle Neumann / @NeumannVetle

03/13/2020 at 03:07PM

16
#881 - 杜撰 / @NOrUixDzwW4BbCP

03/17/2020 at 08:46AM

16
#882 - vvaannaa3 / @vvaannaa3

03/20/2020 at 03:04PM

16
#883 - Brian Lause / @TallBrianL

03/30/2020 at 04:26AM

16
#884 - Вова Соколович / @vovasokoll

04/05/2020 at 03:30AM

16
#885 - 十郎☔ / @juro106

04/13/2020 at 10:44AM

16
#886 - Toby de Havilland / @tobydeh

04/19/2020 at 08:39AM

16
#887 - まーしぃ🐢💨 / @marcymaplemug

04/22/2020 at 01:37PM

16
#888 - sherman / @sherman37029653

04/24/2020 at 01:52AM

16
#889 - Bspammer / @Bspammer

05/07/2020 at 12:40AM

16
#890 - Kevin Keefe / @KevinKeefe5

05/14/2020 at 03:18AM

16
#891 - Amit Kumar / @amit_locham

05/31/2020 at 07:44PM

16
#892 - Szymon Naskręcki / @snaskrecki

06/01/2020 at 06:23PM

16
#893 - Romain / @djizeuscoco

06/08/2020 at 01:13PM

16
#894 - Hogo / @HogoBlog

06/12/2020 at 01:14AM

16
#895 - nihilistCookie / @NihilistCookie

06/14/2020 at 12:51PM

17
#896 - Cristian Lupașcu / @clupasq

03/30/2016 at 10:08AM

17
#897 - Kai Yuan / @kentyuan

03/30/2016 at 10:22AM

17
#898 - Dinesh Bhosale / @MrDineshBhosale

03/30/2016 at 09:48PM

17
#899 - Patrick Elliott / @thatcsguy

03/30/2016 at 10:48PM

17
#900 - Jon Krause / @jkrause314

03/30/2016 at 11:20PM