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

3262 active golfers, 15546 entries

Leaderboard (lowest score wins):
17
#991 - Vijai Shankar Natarajan / @NatarajanVijai

03/28/2018 at 01:53AM

17
#992 - David Clark / @thecaymanator

03/30/2018 at 10:16PM

17
#993 - Ted Carlsson / @TedCarlsson

03/31/2018 at 03:41PM

17
#994 - Jack / @P1h3r1e3d13

04/28/2018 at 12:01AM

17
#995 - Thies / @Thies93083981

05/03/2018 at 01:49PM

17
#996 - eL Bunda / @elbund4

05/06/2018 at 10:05AM

17
#997 - Zach Johnson / @zachjohnsondev

05/07/2018 at 08:44PM

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

05/24/2018 at 04:30PM

17
#999 - Akash Khan / @akash93

06/08/2018 at 01:59AM

17
#1000 - Tom ten Thij / @eco_coder

06/28/2018 at 02:36PM

17
#1001 - Joachim / @jodles89

07/02/2018 at 01:50AM

17
#1002 - Gareth Miller / @CTingCTer

07/12/2018 at 11:07AM

17
#1003 - Ben / @ben_rosio

07/16/2018 at 12:05AM

17
#1004 - yqu212 / @yqu212

07/26/2018 at 01:01PM

17
#1005 - ken.60625 / @60625Ken

08/15/2018 at 01:20PM

17
#1006 - Константин Иванович / @Konstantin_1987

08/16/2018 at 06:43AM

17
#1007 - Christian Fosli / @porridge111

08/18/2018 at 03:17PM

17
#1008 - Тёма / @Timon_Surikat

08/18/2018 at 10:21PM

17
#1009 - Satheesh Kumar / @jmsatheesh

08/20/2018 at 01:15AM

17
#1010 - Francisco Rivera / @frivera621

08/25/2018 at 04:53PM

17
#1011 - Daniel Vaqueiro / @chimidea

08/25/2018 at 05:46PM

17
#1012 - 김성현 / @TVrZzAZsmL4lS3S

08/26/2018 at 06:05AM

17
#1013 - vim001_ / @vim001_

09/02/2018 at 07:58PM

17
#1014 - Test / @TheVastComplex

09/06/2018 at 04:18PM

17
#1015 - DustVoice / @DustVoice

09/10/2018 at 09:08AM

17
#1016 - royer / @RoyerMoyer1

09/10/2018 at 09:02PM

17
#1017 - Matt Burg / @matsbleurgh

09/12/2018 at 08:46PM

17
#1018 - Toby Runo / @toptab267

09/15/2018 at 02:50PM

17
#1019 - Ruben Paz / @IstarEldritch

09/15/2018 at 10:02PM

17
#1020 - Sean / @SeanZhou1023

09/22/2018 at 01:14AM