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

3141 active golfers, 14817 entries

Leaderboard (lowest score wins):
23
#2371 - Pierre Poupin / @PierrePoupin

04/08/2017 at 02:39PM

23
#2372 - iCheats / @iCheats

04/21/2017 at 05:25PM

23
#2373 - 「Nayed」 / @NayedSA

04/25/2017 at 02:45PM

23
#2374 - Technocoder / @Technocoder_

04/27/2017 at 12:08AM

23
#2375 - Dom Armstrong / @dom_cycleface

05/03/2017 at 01:31PM

23
#2376 - Jenny Johnson / @Kippz07

05/06/2017 at 04:43PM

23
#2377 - Tommaso Leonardi / @tom_leon

05/11/2017 at 01:37PM

23
#2378 - Sean Rodman / @bassman7689

05/13/2017 at 01:02AM

23
#2379 - python-tweepy / @python_tweepy

05/14/2017 at 10:08PM

23
#2380 - ʀǟɦʊʟ ɮɦօʟǟ / @theRahulBhola

05/21/2017 at 01:27PM

23
#2381 - Lukas Tobler / @lut0bler

06/03/2017 at 06:56PM

23
#2382 - Julian / @jufahr

06/07/2017 at 09:11PM

23
#2383 - Ezra Zigmond / @ezrazig

06/21/2017 at 09:10PM

23
#2384 - syagush / @syagoush

06/22/2017 at 10:17AM

23
#2385 - Guillaume / @WeshGuillaume

06/23/2017 at 10:17AM

23
#2386 - JoeDavidson / @josirisjosirisj

06/23/2017 at 01:24PM

23
#2387 - Barnaby Colby / @BarnabyColby

07/07/2017 at 07:09PM

23
#2388 - Ildar Gilfanov / @Ildar_Razin

07/22/2017 at 06:42AM

23
#2389 - loutiyang / @loutiyang

07/23/2017 at 03:44AM

23
#2390 - Brandon Height / @Lask0x

08/07/2017 at 08:30PM

23
#2391 - Benjamin Unger / @Ben_Unger

08/16/2017 at 02:10PM

23
#2392 - jfdw102 / @jfdw102

08/21/2017 at 09:05AM

23
#2393 - Brian Vodicka / @the_brian_v

08/22/2017 at 05:27AM

23
#2394 - Terry Ding / @TerryDing77

08/22/2017 at 08:47PM

23
#2395 - Marcin Paliwoda / @eukaliptuss

08/25/2017 at 12:57PM

23
#2396 - Alex / @alexhod08054568

09/10/2017 at 04:55PM

23
#2397 - Amy Lim / @chasingkytes

09/14/2017 at 05:23AM

23
#2398 - James Dong / @JamesDongTwitte

09/21/2017 at 07:18PM

23
#2399 - Morgan / @morganmay

09/22/2017 at 02:20AM

23
#2400 - guiot / @guiotguiotguiot

09/27/2017 at 10:03PM