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

3204 active golfers, 15185 entries

Leaderboard (lowest score wins):
19
#1411 - grigouille / @grigouille2

06/25/2017 at 08:15PM

19
#1412 - Tomasz Walotek / @uolot

06/27/2017 at 01:14PM

19
#1413 - Kieron Browne / @KieronBrowne1

06/29/2017 at 04:33PM

19
#1414 - Jacob Buete / @JBuete

07/03/2017 at 12:59AM

19
#1415 - Edouard Piette / @EdPiette

07/05/2017 at 08:30AM

19
#1416 - Cody Heimberger / @certifiedloud

07/08/2017 at 05:37AM

19
#1417 - spooqua / @equeaa

07/11/2017 at 08:59PM

19
#1418 - FunkySayu / @FunkySayu

07/17/2017 at 09:12PM

19
#1419 - Joonas Pihlajamaa / @jokkebk

07/19/2017 at 12:11PM

19
#1420 - Dave / @ginsuthumbtack

07/21/2017 at 09:03PM

19
#1421 - Adrian Staniec / @adrianstaniec

08/05/2017 at 09:28AM

19
#1422 - toddkoym / @toddkoym

08/07/2017 at 08:13PM

19
#1423 - Daniel / @0x9ABC

08/14/2017 at 07:25PM

19
#1424 - D Fenec / @fenec230

08/18/2017 at 10:42PM

19
#1425 - Hans Vennegoor / @HansVennegoor

08/24/2017 at 05:24PM

19
#1426 - Pascal / @herr_planlos

08/25/2017 at 12:51PM

19
#1427 - Octave Crespel / @OCrespel

08/27/2017 at 04:30PM

19
#1428 - hatoo / @hato2000

08/30/2017 at 09:35AM

19
#1429 - Karel Vervaeke / @karel1980

09/07/2017 at 09:39AM

19
#1430 - Ben Turner / @g2mbenturner1m

09/07/2017 at 08:31PM

19
#1431 - Nome / @sensorario

09/08/2017 at 01:09PM

19
#1432 - bocadillodeatun / @bocadillodeatun

09/11/2017 at 06:52AM

19
#1433 - Tommy Kelly / @tommykellyinla

09/11/2017 at 11:59PM

19
#1434 - Benjamin Petit / @benjipetit

09/12/2017 at 02:00AM

19
#1435 - jirgn / @jirgn

09/16/2017 at 03:25PM

19
#1436 - Owen / @Owen40802859

09/18/2017 at 12:47PM

19
#1437 - Richard Veneracion / @rveneracion

09/24/2017 at 03:50PM

19
#1438 - Paweł Styczewski / @kryspuss

09/25/2017 at 10:02AM

19
#1439 - Bartek / @ShallWeMove

09/25/2017 at 10:50AM

19
#1440 - ylletyll / @ylletyll

09/27/2017 at 07:15PM