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

2496 active golfers, 11369 entries

Leaderboard (lowest score wins):
30
#2371 - Chris Snyder / @crsWorldCitizen

04/17/2017 at 05:17PM

30
#2372 - Frozen Voice / @FrozenVoice

07/29/2017 at 04:38AM

30
#2373 - moriancumer / @moriancumer

03/26/2018 at 07:53PM

30
#2374 - Jacob Fjerbæk Olsen / @jacobfjerbaek

04/10/2018 at 12:20PM

30
#2375 - twitbot / @twitbort

04/18/2018 at 09:11PM

30
#2376 - SplinterPie / @splinter_pie

05/03/2018 at 06:34PM

30
#2377 - Joey / @jtran_tweetman

06/27/2018 at 12:59PM

30
#2378 - Lalit Kumar / @lalitmee

07/07/2018 at 10:14PM

30
#2379 - BanyRule / @BanyRule

08/04/2018 at 08:55PM

30
#2380 - Edward Vear / @edward_vear

12/19/2018 at 01:52AM

30
#2381 - Casey Kalinowski / @Mediocre__Fred

01/09/2019 at 10:34PM

30
#2382 - Duder963 / @Duder963

02/25/2019 at 06:02AM

30
#2383 - MGJoe93 / @mgjoe93

03/02/2019 at 01:06PM

30
#2384 - ui / @ui61065627

03/11/2019 at 10:59AM

31
#2385 - Nicholas Shirley / @nashirley

02/26/2017 at 12:12AM

31
#2386 - Benny / @b1299709

06/13/2017 at 08:54AM

31
#2387 - λ / @leyyinad

07/26/2017 at 11:34AM

31
#2388 - xuansage / @xuansage

09/05/2017 at 06:26AM

31
#2389 - Alexander Gratner / @gratner3

10/12/2017 at 06:39PM

31
#2390 - Michael Heyman / @michaelheyman

11/16/2017 at 02:13AM

31
#2391 - Cawan Porto / @cawanporto

12/27/2017 at 08:11PM

31
#2392 - Vincent Dahmen / @wahrwolf

03/29/2018 at 12:16PM

31
#2393 - neodisco / @neodisco

09/25/2018 at 11:10AM

31
#2394 - Valeriy Pushkar / @valeriy_pushkar

10/15/2018 at 01:13PM

31
#2395 - Steve Greene / @Sud0Steve0

11/01/2018 at 02:10AM

31
#2396 - Bart Barnard / @BartBarnard

11/21/2018 at 10:31AM

31
#2397 - Marcio M Pereira / @iviarcio

12/21/2018 at 02:39AM

31
#2398 - Mitchell Hanberg / @mitchhanberg

03/19/2019 at 08:38PM

32
#2399 - Luke / @toy_lang_smell

12/28/2016 at 10:15PM

32
#2400 - kli6891 / @kli6891

01/24/2017 at 04:10AM