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

2836 active golfers, 13045 entries

Leaderboard (lowest score wins):
19
#1111 - Sean A / @Llanion

03/30/2016 at 07:40PM

19
#1112 - Tyler / @tylerbindon

03/31/2016 at 02:59AM

19
#1113 - Ryan Troxler / @TroxlerRyan

03/31/2016 at 03:06AM

19
#1114 - Mike Waldner / @mawaldne

03/31/2016 at 05:57PM

19
#1115 - Alice Benign / @AliceBenign

03/31/2016 at 09:43PM

19
#1116 - Jonny / @Jonnytron

04/01/2016 at 01:35AM

19
#1117 - Tact Overflow / @muppling

04/01/2016 at 01:28PM

19
#1118 - Alex Ch / @_AlexCh_

04/01/2016 at 11:19PM

19
#1119 - Luc Trudeau / @LT_Pragmatic

04/02/2016 at 12:33AM

19
#1120 - もく / @Nik_Last

04/02/2016 at 10:26AM

19
#1121 - Matt / @mcr05

04/03/2016 at 01:21PM

19
#1122 - Hannu Kröger / @hkroger

04/04/2016 at 12:29PM

19
#1123 - sitting_like_L / @das_sawyer19l

04/07/2016 at 12:19AM

19
#1124 - エクシル / @sicoh395

04/07/2016 at 02:10PM

19
#1125 - kitsuyui / @kitsuyui

04/08/2016 at 10:22AM

19
#1126 - Robert Carmosino / @Cryptic_Storm

04/09/2016 at 08:35AM

19
#1127 - Matteo Signer / @MatteoSigner

04/12/2016 at 07:52AM

19
#1128 - Michele Cronnelle / @MikeCronn

04/13/2016 at 11:48AM

19
#1129 - fake geek guy / @light_rook

04/13/2016 at 11:39PM

19
#1130 - Slimior / @Slimior

04/14/2016 at 04:50PM

19
#1131 - Louis Caruana / @louiecaruana

04/15/2016 at 02:59AM

19
#1132 - S O / @strangelooperer

04/17/2016 at 12:28PM

19
#1133 - Yanis KHORSI / @YanisKHORSI

04/20/2016 at 03:56PM

19
#1134 - Jake Griffin / @J4K0_G

04/20/2016 at 06:35PM

19
#1135 - asdf / @asdf31x234

04/21/2016 at 06:31PM

19
#1136 - tPenguinLTG / @tpenguinltg

04/25/2016 at 02:24AM

19
#1137 - Levon Tarver / @LevonTarver

04/26/2016 at 10:05AM

19
#1138 - jamesdrake / @oppaus

04/26/2016 at 11:19PM

19
#1139 - Thomas Bailey / @cthomasbailey

04/27/2016 at 01:30PM

19
#1140 - Will Furnass / @WillFurnass

04/30/2016 at 08:32AM