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

3025 active golfers, 14214 entries

Leaderboard (lowest score wins):
20
#1741 - Netcraft Reporter / @NetcraftReport1

08/08/2018 at 02:35PM

20
#1742 - golgi / @gloggyapparatus

10/02/2018 at 12:13AM

20
#1743 - Jonghyun Yun / @JonghyunYun

10/03/2018 at 12:59PM

20
#1744 - Adam / @askoufish

10/26/2018 at 02:56AM

20
#1745 - Kasparas Lavrukaitis / @kaslvr

10/31/2018 at 03:59PM

20
#1746 - Andreas Nordahl / @andreasnordahl

11/12/2018 at 12:21PM

20
#1747 - BaffaloP 🐃🎨 / @bbaffalopp

11/15/2018 at 11:20AM

20
#1748 - Kritixi Lithos / @kritixilithos

11/15/2018 at 06:29PM

20
#1749 - Matze / @ebaharilikult

11/19/2018 at 09:28AM

20
#1750 - James Gillies / @jw_gillies

11/24/2018 at 04:51PM

20
#1751 - CptBong / @cpt1bong

11/26/2018 at 11:50PM

20
#1752 - aka / @aaik4

12/23/2018 at 02:27AM

20
#1753 - Lorenzo Swank / @lswank

01/07/2019 at 12:12PM

20
#1754 - Martins / @Martins88554972

01/13/2019 at 08:03PM

20
#1755 - Thomas Surlykke / @THSurlykke

01/16/2019 at 05:06PM

20
#1756 - tenteke / @kuskus3

01/20/2019 at 04:42AM

20
#1757 - Azyl / @aa_knifejaw

01/25/2019 at 03:51AM

20
#1758 - Tim White / @antichrist65535

01/26/2019 at 10:13PM

20
#1759 - a197210 / @peticti

02/13/2019 at 10:03PM

20
#1760 - Antonio Bayonas / @BayonasAntonio

03/01/2019 at 09:38PM

20
#1761 - Duke Du / @DukeDu2

03/21/2019 at 03:21AM

20
#1762 - 黒澤亮二 / @rjkuro

03/25/2019 at 06:13PM

20
#1763 - milserk / @milserk

04/04/2019 at 11:52AM

20
#1764 - Fredrik Bjerkås / @fbjerkas

04/21/2019 at 11:59PM

20
#1765 - Apex Predatoe / @EthanMcQuarrie

04/24/2019 at 05:38AM

20
#1766 - BenL / @BenL86660733

04/26/2019 at 01:07PM

20
#1767 - Juan R Leon / @JuanRLeon1

04/29/2019 at 05:43AM

20
#1768 - yipcyj / @yipcyj

05/04/2019 at 01:34PM

20
#1769 - Frede Emil / @Frede_Eb

05/05/2019 at 02:37PM

20
#1770 - andysong / @suyangsong

05/14/2019 at 08:56PM