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

3870 active golfers, 18755 entries

Leaderboard (lowest score wins):
14
#601 - howanto / @ho_wan_

02/16/2020 at 04:24PM

14
#602 - Jonathan Stinson / @KnightdeadJohn

02/18/2020 at 01:22PM

14
#603 - Brian Jesse / @Brain_Bacon

02/20/2020 at 09:24AM

14
#604 - Jon Karl Sigurdsson / @Math_Meditation

02/20/2020 at 11:56PM

14
#605 - David Hume / @djh95

02/25/2020 at 11:52PM

14
#606 - golferN / @golferN3

02/26/2020 at 10:15PM

14
#607 - brightlyopen / @brightlyopen

03/04/2020 at 05:54PM

14
#608 - Xiangyu Xu / @bkbncn

03/05/2020 at 08:49AM

14
#609 - Paul Parker / @PaulDesmoParker

03/05/2020 at 11:09PM

14
#610 - エターナル雑魚 / @eternalzako

03/07/2020 at 03:14PM

14
#611 - せいほう / @FICSQF

03/12/2020 at 09:47AM

14
#612 - noremac / @noremac66873702

03/13/2020 at 09:05PM

14
#613 - Ivan Levcovitz / @ivanlevcovitz

03/14/2020 at 08:26PM

14
#614 - Niklas Ydebäck / @Ydebaeck

03/15/2020 at 06:28PM

14
#615 - Octrace / @octrace

03/15/2020 at 07:23PM

14
#616 - 薛浩滎 / @iTPChbTeI4ZW9s3

03/15/2020 at 09:53PM

14
#617 - samet ぷ / @jssamet

03/16/2020 at 11:49AM

14
#618 - BnnGolfer / @BnnGolfer

03/19/2020 at 11:40PM

14
#619 - ちゅうい / @_chuyii

03/20/2020 at 01:55PM

14
#620 - Marco / @Marco24456514

03/21/2020 at 09:38PM

14
#621 - Yan Xue / @_yxue

03/21/2020 at 10:51PM

14
#622 - Robberechts Arne / @ArneRobberechts

03/22/2020 at 01:41PM

14
#623 - nicosierra / @nicosierra84

03/22/2020 at 07:48PM

14
#624 - Rodrigo V. Lopes / @rodvlopes

03/23/2020 at 10:02PM

14
#625 - Alexander / @Alexand64026860

03/25/2020 at 01:46PM

14
#626 - mury liang / @muryliang

04/04/2020 at 07:39AM

14
#627 - Skywalker 666 / @MemeMasterXXI

04/09/2020 at 07:54AM

14
#628 - Moatvald / @moatvald

04/12/2020 at 06:37AM

14
#629 - edvrds / @edvrds

04/12/2020 at 10:41AM

14
#630 - Anon Y. Mous / @AnonYMo50660689

04/17/2020 at 11:47AM