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

2391 active golfers, 10849 entries

Leaderboard (lowest score wins):
14
#61 - Benjamin Espey / @bennyty

07/25/2016 at 02:04PM

14
#62 - OumpaLoumpa / @OLoumpa

07/25/2016 at 08:27PM

14
#63 - hyhit / @hyhit2

07/29/2016 at 03:12PM

14
#64 - L3viathan / @L3viathan2142

07/30/2016 at 01:31AM

14
#65 - Diego Anaya Mancilla / @mancilladev

08/03/2016 at 02:29AM

14
#66 - Anton / @AntonTell1

08/07/2016 at 04:26AM

14
#67 - Eddie Elizondo / @eddie_elizondo

08/08/2016 at 08:04AM

14
#68 - Daniel Flanagan / @lytedev

08/09/2016 at 08:34AM

14
#69 - Josh Samuelson / @JoshSamuelson

08/09/2016 at 09:45PM

14
#70 - 7r6a2l / @7r6a2l

08/10/2016 at 02:09AM

14
#71 - labreck / @labreck4

08/10/2016 at 02:44PM

14
#72 - ♜ Pepe Doval / @pepellou

08/10/2016 at 04:16PM

14
#73 - Richard O'Brien / @richard0b

08/18/2016 at 04:04AM

14
#74 - Maxim Pertsov / @maxim_pertsov

08/21/2016 at 07:56AM

14
#75 - Stanislav / @prstad

08/22/2016 at 08:31AM

14
#76 - jaresty / @jaresty

08/23/2016 at 02:38PM

14
#77 - Noud Speijcken / @noudspeijcken

08/23/2016 at 08:28PM

14
#78 - onedayrex / @onedayzns

08/24/2016 at 08:21AM

14
#79 - Guillem Blanco / @BlancoGuillem

08/24/2016 at 10:46AM

14
#80 - Maxim Prokopenko / @max1cp

08/25/2016 at 03:18PM

14
#81 - Aaron Fresh / @AaronFresh7

08/27/2016 at 11:47PM

14
#82 - Andrew / @PickledCupcakes

08/30/2016 at 05:31AM

14
#83 - Stephen Aument / @saument

08/30/2016 at 03:39PM

14
#84 - JSDurand / @DurandJS

08/31/2016 at 02:19PM

14
#85 - Aaron Williamson / @TheFunkOverlord

09/01/2016 at 05:56PM

14
#86 - jdupont655 / @jdupont655

09/01/2016 at 11:08PM

14
#87 - 馬 / @uma0124

09/03/2016 at 09:37AM

14
#88 - Peter / @sunirbmag

09/03/2016 at 04:02PM

14
#89 - loki2441 / @loki2441

09/05/2016 at 08:16AM

14
#90 - 박 재 성 / @javajigi

09/07/2016 at 10:24AM