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

2826 active golfers, 12990 entries

Leaderboard (lowest score wins):
24
#2371 - Aurélien Hervé / @aurel_herve

04/19/2017 at 03:07PM

24
#2372 - Aming / @aminglau

04/25/2017 at 08:48AM

24
#2373 - Jarred Dong / @DongJarred

04/28/2017 at 09:53AM

24
#2374 - qin shulei / @qinshulei

05/04/2017 at 06:49AM

24
#2375 - Þórhallur Sverrisson / @thorhs

06/16/2017 at 12:07PM

24
#2376 - fridjo / @frozenfrid

06/20/2017 at 08:49PM

24
#2377 - Stop and think / @ms_uncountable

07/06/2017 at 06:46PM

24
#2378 - Clay Thomas / @CHThomas95

07/21/2017 at 10:11PM

24
#2379 - Adam Matan / @adam_matan

07/31/2017 at 02:46PM

24
#2380 - Randall Fulton / @randallfulton

08/16/2017 at 03:18PM

24
#2381 - Ryan Patterson / @CGamesPlay

08/18/2017 at 03:15AM

24
#2382 - Moses Miller / @Majora320

08/18/2017 at 09:49PM

24
#2383 - Loïc Giraldi / @LoicGiraldi

09/11/2017 at 05:37PM

24
#2384 - Tallak Tveide / @tallakt

09/22/2017 at 11:02AM

24
#2385 - Justin / @Buntworthy

09/22/2017 at 07:23PM

24
#2386 - tanguyGerome / @TanguyGerome

10/02/2017 at 12:53PM

24
#2387 - Herr Joschka / @HerrJoschka

10/07/2017 at 04:33PM

24
#2388 - Kevin / @PurpSchkurp

10/15/2017 at 10:28AM

24
#2389 - Chris Kirkland / @numbahs

11/03/2017 at 01:01AM

24
#2390 - BPD / @brian_doyle

11/11/2017 at 02:50PM

24
#2391 - Armin Preiml / @closeneough

12/13/2017 at 08:21AM

24
#2392 - artisan bed maker / @ebencooke

01/15/2018 at 03:03PM

24
#2393 - Aleksey Leshko / @AlekseyLeshko

01/22/2018 at 09:15PM

24
#2394 - Mark Blakeney / @bulletmark

02/03/2018 at 11:29PM

24
#2395 - tapio / @gncnaxb

02/16/2018 at 03:00PM

24
#2396 - JK / @QuFeld

03/01/2018 at 09:07PM

24
#2397 - Kaydo Alders / @Yousousen

03/02/2018 at 12:42PM

24
#2398 - Tim / @timothyscosta

03/07/2018 at 01:34PM

24
#2399 - Sergio Semedi / @SergioSemedi

03/09/2018 at 07:33AM

24
#2400 - Shannon Brooks / @coder_shannon

04/06/2018 at 12:02PM