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

2758 active golfers, 12667 entries

Leaderboard (lowest score wins):
20
#1501 - kanazawak / @_kanazawak

06/12/2017 at 02:45PM

20
#1502 - Emmanuel Herrero / @hairarrow

06/14/2017 at 07:28PM

20
#1503 - Derek Schrock / @derekschrock

06/23/2017 at 01:32AM

20
#1504 - Michael Rees / @reesmichael1

06/23/2017 at 02:57AM

20
#1505 - oliver mueller / @marcontwit

06/26/2017 at 09:34AM

20
#1506 - Orhan Mekic / @orhanmekic

07/09/2017 at 09:15PM

20
#1507 - Jon Barker / @j0nbarker

07/12/2017 at 11:10AM

20
#1508 - Vedro / @Vedro03557622

07/28/2017 at 07:50PM

20
#1509 - Erick Aldaz / @erickfgb89

08/03/2017 at 12:45PM

20
#1510 - Baine Wedlock / @BaineWedlock

08/10/2017 at 06:19PM

20
#1511 - Doug / @AsnoGordo

08/10/2017 at 10:39PM

20
#1512 - Dana 🍓 / @unit_gg

08/14/2017 at 05:46PM

20
#1513 - David G0LD0 Forcier / @G0lD015

08/14/2017 at 07:45PM

20
#1514 - Kyman Huang / @KymanHuang

09/05/2017 at 04:32AM

20
#1515 - Zel / @Zel98836552

09/07/2017 at 08:29PM

20
#1516 - John / @amazeQuaternio

09/09/2017 at 11:13AM

20
#1517 - Graham Bates / @gigabates

09/16/2017 at 09:15PM

20
#1518 - sonny jim / @jim_challenger

09/19/2017 at 10:05PM

20
#1519 - Patrick Chin / @patrickjchin

09/21/2017 at 11:54PM

20
#1520 - Stephen Betts / @stephenbetts

09/27/2017 at 07:50PM

20
#1521 - Antonio Sánchez / @asanchezc_h4f

09/28/2017 at 01:53AM

20
#1522 - John Doe / @Xeraphobiac

10/01/2017 at 05:39PM

20
#1523 - Anton Popov / @agraver

10/04/2017 at 10:12AM

20
#1524 - Mr. F / @Flur1n

10/05/2017 at 06:36PM

20
#1525 - Marc / @Fusselgesicht

10/14/2017 at 10:03PM

20
#1526 - Matt Simmons / @matthSims

10/17/2017 at 07:10PM

20
#1527 - Torsten Trautwein / @neowork

11/02/2017 at 11:22AM

20
#1528 - r8923vqnu89wcnar / @r8923vqnu89wcn1

11/02/2017 at 12:47PM

20
#1529 - Philippe / @cloonn1

11/03/2017 at 08:30PM

20
#1530 - ryuugekisya / @ryuugekisya

11/04/2017 at 10:51AM