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

3870 active golfers, 18755 entries

Leaderboard (lowest score wins):
14
#361 - Frankie Liu / @pi31415629

01/18/2018 at 09:29PM

14
#362 - Josh Steiner / @josh_steiner

01/20/2018 at 06:39PM

14
#363 - Eli / @maxprkr

01/24/2018 at 09:37AM

14
#364 - Urbanovics Péter / @UrbanovicsP

01/31/2018 at 11:12PM

14
#365 - to.cd.tw / @to_cd_tw

02/01/2018 at 12:46AM

14
#366 - Harshdeep Kanhai / @HarshdeepKanhai

02/01/2018 at 02:15PM

14
#367 - Hector Ricardo / @Hector_Ricardo3

02/01/2018 at 06:15PM

14
#368 - Lalo / @LaloPianoricky

02/02/2018 at 01:36AM

14
#369 - fool / @foolbie

02/03/2018 at 02:46PM

14
#370 - Alphonse Mariya / @alfunx

02/03/2018 at 07:00PM

14
#371 - NGM / @gmnimrod1

02/06/2018 at 10:33AM

14
#372 - Turkey Man / @lvturkeyman

02/07/2018 at 02:35AM

14
#373 - Ondřej Soukup / @goodQuestion_or

02/09/2018 at 03:05PM

14
#374 - z1505804@mvrht.net / @z150580

02/16/2018 at 08:39AM

14
#375 - Ленар / @LShagiev

02/18/2018 at 11:51AM

14
#376 - Alvaro / @VaroClemente

02/18/2018 at 05:23PM

14
#377 - Фомин Денис / @TaPO4eg3D

02/21/2018 at 06:18AM

14
#378 - bruno / @LokoPoggi

02/22/2018 at 11:50PM

14
#379 - sura / @surarusa

02/23/2018 at 05:45AM

14
#380 - Guirec CORBEL / @GuirecCorbel

02/25/2018 at 09:05PM

14
#381 - Simon Zeng / @KronicMan

02/27/2018 at 03:08AM

14
#382 - LC / @leeren

02/28/2018 at 11:43AM

14
#383 - Maxim Zalata / @zalatik

03/02/2018 at 05:49PM

14
#384 - countime / @countime1

03/04/2018 at 03:38PM

14
#385 - azzal07 / @azzal07

03/06/2018 at 03:15PM

14
#386 - Chris Sutton / @cs1379320

03/12/2018 at 12:03AM

14
#387 - Lisa Ugray / @lisa_ugray

03/13/2018 at 12:25PM

14
#388 - Eric Briand / @eric_briand

03/14/2018 at 04:22PM

14
#389 - Matthew Trumbell / @MTrums

03/16/2018 at 09:05PM

14
#390 - Márton Németh / @nemarci42

03/17/2018 at 10:09PM