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):
23
#2341 - Brandon Height / @Lask0x

08/07/2017 at 08:30PM

23
#2342 - Benjamin Unger / @Ben_Unger

08/16/2017 at 02:10PM

23
#2343 - jfdw102 / @jfdw102

08/21/2017 at 09:05AM

23
#2344 - Brian Vodicka / @the_brian_v

08/22/2017 at 05:27AM

23
#2345 - Terry Ding / @TerryDing77

08/22/2017 at 08:47PM

23
#2346 - Marcin Paliwoda / @eukaliptuss

08/25/2017 at 12:57PM

23
#2347 - Alex / @alexhod08054568

09/10/2017 at 04:55PM

23
#2348 - Amy Lim / @chasingkytes

09/14/2017 at 05:23AM

23
#2349 - James Dong / @JamesDongTwitte

09/21/2017 at 07:18PM

23
#2350 - Morgan / @morganmay

09/22/2017 at 02:20AM

23
#2351 - guiot / @guiotguiotguiot

09/27/2017 at 10:03PM

23
#2352 - h43z / @h43z

09/30/2017 at 07:21PM

23
#2353 - Ivan Poroliev / @p0pac

10/01/2017 at 06:57AM

23
#2354 - Rosemary / @up_thyme

10/06/2017 at 08:22PM

23
#2355 - Richard / @rpmerry

10/09/2017 at 02:40PM

23
#2356 - Paul Woestelandt / @pwoestelandt

10/18/2017 at 04:32PM

23
#2357 - TwIStOy Wong / @twistoy_wang

10/24/2017 at 02:45AM

23
#2358 - Brandon Copeland / @brandoncopeland

10/27/2017 at 02:57AM

23
#2359 - MCC / @MCVIMG

10/31/2017 at 01:14PM

23
#2360 - Philip Henderson / @Furui_Farui

10/31/2017 at 07:39PM

23
#2361 - Carl Ward / @doncarlos999

11/16/2017 at 05:56AM

23
#2362 - Benjamin Snellings / @BenSnellings

11/19/2017 at 07:02PM

23
#2363 - Chasetopher / @chasetopherlee

11/23/2017 at 11:18AM

23
#2364 - Binh Robles / @binhrobles

11/29/2017 at 11:05PM

23
#2365 - Horațiu / @horatiubota

12/03/2017 at 08:21PM

23
#2366 - JohnnyChen / @JohnnyC57567130

12/08/2017 at 03:34AM

23
#2367 - duxifuhivo@p33.org / @duxifuhivo

12/14/2017 at 12:34PM

23
#2368 - Brett Plocek / @BrettP02

12/16/2017 at 04:44AM

23
#2369 - allinonemovie / @allinonemovie

12/17/2017 at 05:44PM

23
#2370 - Luke Parsons / @lukeparsons

12/20/2017 at 05:27PM