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

2712 active golfers, 12466 entries

Leaderboard (lowest score wins):
17
#811 - wlads / @wlads

12/18/2017 at 09:35PM

17
#812 - Brett Bender / @brttbndr

12/31/2017 at 02:25AM

17
#813 - luzzyzhang / @luzzyzhang

12/31/2017 at 10:59AM

17
#814 - TpouHuK / @TpouHuK_

01/16/2018 at 09:56PM

17
#815 - zhouhe / @zhouhe4

01/25/2018 at 06:06AM

17
#816 - thadeuszlay / @thadeuszlay

01/27/2018 at 06:48PM

17
#817 - 陈振宇 / @1243065115

01/31/2018 at 07:45AM

17
#818 - MathijsHoogland / @MathijsHoogland

02/01/2018 at 01:07PM

17
#819 - Paulo / @032Stardust

02/02/2018 at 04:18PM

17
#820 - André Reigoto / @AndreReigoto

02/21/2018 at 03:32AM

17
#821 - elsie / @elsie06177256

02/23/2018 at 10:01AM

17
#822 - Joel Gärtner / @Jeerok

02/26/2018 at 04:18PM

17
#823 - Thiago Araújo Silva / @thiagoaraujos

03/13/2018 at 05:29PM

17
#824 - Vijai Shankar Natarajan / @NatarajanVijai

03/28/2018 at 01:53AM

17
#825 - David Clark / @thecaymanator

03/30/2018 at 10:16PM

17
#826 - Ted Carlsson / @TedCarlsson

03/31/2018 at 03:41PM

17
#827 - Andrzej Wąsowski / @AndrzejWasowski

04/13/2018 at 10:35AM

17
#828 - Jack / @P1h3r1e3d13

04/28/2018 at 12:01AM

17
#829 - Thies / @Thies93083981

05/03/2018 at 01:49PM

17
#830 - eL Bunda / @elbund4

05/06/2018 at 10:05AM

17
#831 - Zach Johnson / @zachjohnsondev

05/07/2018 at 08:44PM

17
#832 - Matt Aschmann / @ma7hatter

05/20/2018 at 11:21PM

17
#833 - Marchand Paul-Valère / @pvmarch

05/24/2018 at 04:30PM

17
#834 - Akash Khan / @akash93

06/08/2018 at 01:59AM

17
#835 - Tom ten Thij / @eco_coder

06/28/2018 at 02:36PM

17
#836 - Joachim / @jodles89

07/02/2018 at 01:50AM

17
#837 - Gareth Miller / @CTingCTer

07/12/2018 at 11:07AM

17
#838 - Ben / @ben_rosio

07/16/2018 at 12:05AM

17
#839 - yqu212 / @yqu212

07/26/2018 at 01:01PM

17
#840 - ken.60625 / @60625Ken

08/15/2018 at 01:20PM