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

2756 active golfers, 12650 entries

Leaderboard (lowest score wins):
16
#601 - Eugene / @youjeannn

05/10/2018 at 06:05PM

16
#602 - Chien-Wei Sun / @chienweisun

05/20/2018 at 03:06PM

16
#603 - liberforce / @liberforce1

05/21/2018 at 11:42PM

16
#604 - rg thomas / @rgt47

06/17/2018 at 09:36PM

16
#605 - 3admin / @achtebaby

06/29/2018 at 07:19AM

16
#606 - fucus / @fishlovebanana

07/26/2018 at 12:22AM

16
#607 - Dinesh Bhosale / @DineshRBhosale

08/04/2018 at 09:15PM

16
#608 - Simon Ingelsson / @_DeVVaN_

08/15/2018 at 02:08PM

16
#609 - Coruja Queridinha / @miriamretka

08/19/2018 at 07:12PM

16
#610 - A Programmer / @hlprogrammer

08/26/2018 at 12:47PM

16
#611 - a / @a05150445

09/06/2018 at 02:34AM

16
#612 - Ezekiel Vladimir / @EzekielVladimir

09/11/2018 at 12:49PM

16
#613 - navasankirtanpuri / @iskconnola

09/13/2018 at 02:42AM

16
#614 - Wutimatic / @sarawoot_s

09/15/2018 at 04:15PM

16
#615 - Bart3k / @Bart3k3

09/17/2018 at 07:39AM

16
#616 - pantoufle___ / @pantouf18750076

09/17/2018 at 02:34PM

16
#617 - Brendan B Amdocs / @AmdocsB

09/25/2018 at 01:06PM

16
#618 - Rasmus Bergström / @JRasmusBm

09/25/2018 at 03:46PM

16
#619 - DoubleIA / @IaDouble

09/30/2018 at 08:38AM

16
#620 - Taylor Shane Hawkins / @underempire

10/08/2018 at 03:20PM

16
#621 - Benjamin Kiesl / @BenjaminKiesl

10/10/2018 at 12:48PM

16
#622 - Tuomas Jokioja / @TJokioja

10/12/2018 at 05:56PM

16
#623 - Jan Chwiejczak / @iamjanhak

10/22/2018 at 09:38PM

16
#624 - Mike Adams / @davis_cromwell

11/02/2018 at 02:58AM

16
#625 - 唐偉 / @tangw

11/09/2018 at 04:09AM

16
#626 - Parker Couch / @couch_parker

11/12/2018 at 05:33PM

16
#627 - 永森 / @nagakei05

11/16/2018 at 04:38AM

16
#628 - 905garlicjack / @905garlicjack

11/16/2018 at 12:24PM

16
#629 - Bruno Cunha / @bruncun

11/17/2018 at 06:37PM

16
#630 - Lucas Nussbaum / @LucasNussbaum

12/02/2018 at 08:36AM