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

3068 active golfers, 14429 entries

Leaderboard (lowest score wins):
22
#2221 - Isaak Meier / @IsaakMeier

08/19/2019 at 07:05PM

22
#2222 - theBecwar / @thebecwar

08/26/2019 at 05:05PM

22
#2223 - TechBurgers / @TechBurgers

10/05/2019 at 11:46AM

22
#2224 - Stevens Home / @StevendHome

10/09/2019 at 03:12PM

22
#2225 - Alexander v Trijffel / @avtnl

10/10/2019 at 11:00PM

22
#2226 - João Silva / @joaosilva155

10/22/2019 at 12:21PM

22
#2227 - Eleks Aggr / @AggrEleks

10/22/2019 at 12:48PM

22
#2228 - 0xNinja / @0x_Ninja

10/22/2019 at 09:02PM

22
#2229 - vimgolfer / @vimgolfer9

11/03/2019 at 01:23PM

22
#2230 - alibabadienstaccount / @alibabadiensta1

11/05/2019 at 01:39PM

22
#2231 - fewfold / @fewfold

11/06/2019 at 02:22AM

22
#2232 - pysnow530 / @pysnow530

11/18/2019 at 05:16AM

23
#2233 - Samuel Walladge / @srwalladge

03/30/2016 at 03:59AM

23
#2234 - AleksandarTrifunovic / @akstrfn

03/30/2016 at 08:51AM

23
#2235 - Kevin Ilphrin Pellet / @Kilphrin

03/30/2016 at 09:14PM

23
#2236 - Niru Maheswaranathan / @niru_m

04/03/2016 at 10:19PM

23
#2237 - Karolis / @k_lesevicius

04/10/2016 at 01:57PM

23
#2238 - Nathan Schulte / @nmschulte

04/11/2016 at 07:55PM

23
#2239 - Juampy NR / @juampynr

04/14/2016 at 09:32AM

23
#2240 - Tj / @yrddy

04/19/2016 at 10:41AM

23
#2241 - payoub / @pay0ub

04/20/2016 at 12:30AM

23
#2242 - Gabriel Florit / @gabrielflorit

04/20/2016 at 04:24AM

23
#2243 - Feras / @faldah

04/24/2016 at 12:58AM

23
#2244 - Kevin R / @TheKevinthDay

04/25/2016 at 08:49PM

23
#2245 - soccerprotip - blog / @soccerprotip

04/30/2016 at 09:52AM

23
#2246 - Sebastián Mancilla / @smancill_m

05/05/2016 at 12:56AM

23
#2247 - mike / @bal6219

05/05/2016 at 08:54AM

23
#2248 - Tom / @CronutFacts

05/07/2016 at 01:27AM

23
#2249 - Subhash Shah / @subhashshah

05/10/2016 at 04:58AM

23
#2250 - imlinder / @imLinder

05/11/2016 at 11:22AM