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
#211 - Chris Robertson / @chrisxrobertson

04/30/2017 at 12:33PM

14
#212 - φ / @phittacus

05/01/2017 at 06:51PM

14
#213 - Allen | Wheels / @SRWheel5

05/02/2017 at 10:04PM

14
#214 - jayem / @not_even_lyin

05/04/2017 at 05:34AM

14
#215 - jcbglbmn / @JacobGelbman

05/04/2017 at 08:01PM

14
#216 - Arnie Palmies / @ArnieViPalmies

05/05/2017 at 03:15PM

14
#217 - Christian Guenter / @chris_guenter

05/07/2017 at 07:55PM

14
#218 - 丰璐琰 / @flydzt

05/12/2017 at 02:29AM

14
#219 - Richard Ivan / @Richard_Ivan

05/13/2017 at 03:34PM

14
#220 - ЯRicardo / @TresErresCo

05/15/2017 at 02:00AM

14
#221 - cook / @mattcook08

05/15/2017 at 10:45PM

14
#222 - jakeroberts / @jakeroberts

05/16/2017 at 04:44AM

14
#223 - こーえん / @ShoneCohennn

05/16/2017 at 02:45PM

14
#224 - Emmanuel Denloye-Ito / @EmmanuelDenloye

05/18/2017 at 09:16PM

14
#225 - martin tourneboeuf / @martintournebo1

05/21/2017 at 11:21AM

14
#226 - mesacul / @mesacul

05/23/2017 at 04:50AM

14
#227 - Jason Villanueva / @Json_V1

05/24/2017 at 08:21AM

14
#228 - Tomas Sikula / @tomsmicroblog

05/26/2017 at 05:36PM

14
#229 - ybw / @yossibenwolf

05/28/2017 at 10:19AM

14
#230 - TongHyun Kim / @crowdy

05/31/2017 at 01:23PM

14
#231 - David / @Revan4Vendetta

06/01/2017 at 11:15AM

14
#232 - ssh89 / @ssh89

06/04/2017 at 03:58PM

14
#233 - EQMac MGBs / @EQMacMGBs

06/07/2017 at 10:45PM

14
#234 - シカ / @pigaccel

06/08/2017 at 07:58AM

14
#235 - Swan Benoit / @Rwangum

06/12/2017 at 08:57AM

14
#236 - Bradd Szonye / @bszonye

06/13/2017 at 10:39PM

14
#237 - Robert Mosher / @rcmosher

06/15/2017 at 04:17PM

14
#238 - Rakesh P / @rakeshpgopal

06/15/2017 at 05:44PM

14
#239 - Anthony George / @Xanuthatusu

06/15/2017 at 08:55PM

14
#240 - Super VedoVatto / @supervedovatto

06/16/2017 at 08:50PM