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

2883 active golfers, 13373 entries

Leaderboard (lowest score wins):
16
#601 - Brian Vodicka / @BrianVodicka2

10/07/2017 at 08:52PM

16
#602 - しぇぱっち / @shepabashi

10/20/2017 at 03:06AM

16
#603 - BouboulouVimGolf / @BouboulouVG

10/31/2017 at 03:34PM

16
#604 - Mihai / @mihaicristiant

11/08/2017 at 07:32PM

16
#605 - Hawk Newton / @hawknewton

11/13/2017 at 08:23PM

16
#606 - Zachary Neubert / @Mr_Saturn16347

11/16/2017 at 09:25PM

16
#607 - QingyuZhao / @zhao_qingyu

11/21/2017 at 06:35AM

16
#608 - test / @_test_acc_

11/23/2017 at 09:49AM

16
#609 - BareTull / @BareTull3

12/03/2017 at 04:32PM

16
#610 - Justin Sermeno / @justinsermeno

12/04/2017 at 05:59PM

16
#611 - Joe Kerian / @kerian

01/08/2018 at 05:00PM

16
#612 - xyz / @menhej

02/03/2018 at 02:36PM

16
#613 - renygma / @r3nygma

02/05/2018 at 04:30PM

16
#614 - tadashi-aikawa / @Tadashi_MAMAN

02/17/2018 at 02:41AM

16
#615 - thoughts / @bonchodiaries

02/17/2018 at 08:10PM

16
#616 - Andrew Mack / @andrewrmack1

03/02/2018 at 06:34PM

16
#617 - ewalk153 / @ewalk153

04/01/2018 at 06:29PM

16
#618 - Fichera Gaetano / @gaetanofic

04/05/2018 at 02:46PM

16
#619 - Noah Botimer / @botimer

04/15/2018 at 09:21AM

16
#620 - Yuki Sato / @yukibear_dev

04/23/2018 at 01:34AM

16
#621 - oceanarium / @oceanarium1

04/26/2018 at 01:08PM

16
#622 - Cosmic Frog / @Cozmicfrog

05/03/2018 at 06:50PM

16
#623 - Eugene / @youjeannn

05/10/2018 at 06:05PM

16
#624 - Chien-Wei Sun / @chienweisun

05/20/2018 at 03:06PM

16
#625 - liberforce / @liberforce1

05/21/2018 at 11:42PM

16
#626 - rg thomas / @rgt47

06/17/2018 at 09:36PM

16
#627 - 3admin / @achtebaby

06/29/2018 at 07:19AM

16
#628 - fucus / @fishlovebanana

07/26/2018 at 12:22AM

16
#629 - Dinesh Bhosale / @DineshRBhosale

08/04/2018 at 09:15PM

16
#630 - Simon Ingelsson / @_DeVVaN_

08/15/2018 at 02:08PM