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

2758 active golfers, 12667 entries

Leaderboard (lowest score wins):
20
#1621 - 黒澤亮二 / @rjkuro

03/25/2019 at 06:13PM

20
#1622 - milserk / @milserk

04/04/2019 at 11:52AM

20
#1623 - Fredrik Bjerkås / @fbjerkas

04/21/2019 at 11:59PM

20
#1624 - Apex Predatoe / @EthanMcQuarrie

04/24/2019 at 05:38AM

20
#1625 - BenL / @BenL86660733

04/26/2019 at 01:07PM

20
#1626 - Juan R Leon / @JuanRLeon1

04/29/2019 at 05:43AM

20
#1627 - yipcyj / @yipcyj

05/04/2019 at 01:34PM

20
#1628 - Frede Emil / @Frede_Eb

05/05/2019 at 02:37PM

20
#1629 - andysong / @suyangsong

05/14/2019 at 08:56PM

20
#1630 - regsdev / @regsdev

05/14/2019 at 09:34PM

20
#1631 - Vitaly Sinilin / @unterwulf

05/15/2019 at 01:44PM

20
#1632 - Jonathan Letham / @JonathanLetham

06/06/2019 at 04:22PM

20
#1633 - Graeme Smith / @InstaGraeme

06/06/2019 at 09:18PM

20
#1634 - Erik Lindeborg / @ErikLindeborg

06/07/2019 at 04:46PM

20
#1635 - mrrdl / @mrrdl5

06/07/2019 at 07:17PM

20
#1636 - soundscope / @__soundscope__

06/25/2019 at 12:58PM

20
#1637 - Mike Clark / @mikeclark729

06/26/2019 at 08:07PM

20
#1638 - Jason Chen / @chezbgone

07/04/2019 at 07:24AM

20
#1639 - Lingyu Yi / @LgxLingyu

07/08/2019 at 03:58AM

20
#1640 - Diego Balseiro / @diegobalseiro

07/10/2019 at 03:09AM

21
#1641 - Dmitriy Olshevskiy / @olshevskiy_dv

03/30/2016 at 04:46PM

21
#1642 - Law29 / @ItalieLaw29

04/03/2016 at 06:39PM

21
#1643 - Félix Leblanc / @felix_leblanc13

04/05/2016 at 04:35PM

21
#1644 - neptunepink / @neptunepunk

04/06/2016 at 08:11PM

21
#1645 - WhatDo / @WhatDo10

04/07/2016 at 09:30AM

21
#1646 - Mike D / @delsauce

04/07/2016 at 04:30PM

21
#1647 - Oliver Christ / @0liverChrist

04/14/2016 at 08:19PM

21
#1648 - Sasi Kiran reddy / @vls1989kiran

04/15/2016 at 12:32AM

21
#1649 - ELINGUI Pascal Uriel / @elinguiuriel

04/20/2016 at 01:35PM

21
#1650 - hammboning / @_PuttPirates_

04/20/2016 at 03:22PM