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
#1471 - leelddd / @leelddd

12/07/2016 at 07:49AM

20
#1472 - Mathieu Larouche / @matdube

12/14/2016 at 07:11PM

20
#1473 - matt_todd / @matt_todd

12/20/2016 at 03:57AM

20
#1474 - さよきみ / @MrIn1121

12/23/2016 at 03:21PM

20
#1475 - Zbyszek J / @zbig83

12/29/2016 at 05:40PM

20
#1476 - Sven R / @Sven73de

12/30/2016 at 01:13PM

20
#1477 - Hans Yelek / @hans_yelek

01/08/2017 at 06:53PM

20
#1478 - Tith Chantara / @TithChantara

01/12/2017 at 10:45PM

20
#1479 - Adrian Goldwaser / @AdrianGoldwaser

01/17/2017 at 10:22AM

20
#1480 - Charlier / @Charlicanman

01/28/2017 at 01:15PM

20
#1481 - Le Bray Johan / @ShadTheUseless

02/19/2017 at 02:02PM

20
#1482 - Dan Prince / @danj_prince

02/24/2017 at 11:09PM

20
#1483 - MacBookGyver / @MacBookGyver

03/05/2017 at 06:21AM

20
#1484 - Thomas Dy / @pleasantprog

03/17/2017 at 09:26AM

20
#1485 - quex / @quex_info

03/17/2017 at 07:46PM

20
#1486 - David Wright / @David27Wright

03/21/2017 at 04:18PM

20
#1487 - Abhishek Amberkar / @greenmang0

03/26/2017 at 01:37PM

20
#1488 - Maximilian Albert / @cilix42

03/30/2017 at 01:50AM

20
#1489 - Harry Uzzell / @HarryMUzzell

04/13/2017 at 02:56PM

20
#1490 - :q / @AndyColonQ

04/18/2017 at 12:06AM

20
#1491 - aumgn / @aum9n

04/19/2017 at 05:45PM

20
#1492 - PaulCh / @__paulch

04/21/2017 at 12:38AM

20
#1493 - Ben Kenawell / @vimgolfer_

04/21/2017 at 03:14AM

20
#1494 - Erik Vesteraas / @evestera

04/22/2017 at 08:06PM

20
#1495 - Stefan Uhl / @der_wuschl

04/27/2017 at 02:32PM

20
#1496 - Maggie White / @acquiringcolor

04/27/2017 at 06:02PM

20
#1497 - Doug Chan / @Coufu

04/28/2017 at 03:05PM

20
#1498 - Codingpotato / @codingpotato

05/07/2017 at 08:22AM

20
#1499 - Krzysztof Kotlarek / @krzkot

05/15/2017 at 12:14PM

20
#1500 - Karl Hepler / @oldtimeguitar

05/25/2017 at 04:26PM