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
#2431 - Pingtermasmoo / @pingtermasmoo

09/13/2018 at 08:07AM

23
#2432 - My Info / @michaelmdeng

09/19/2018 at 04:05AM

23
#2433 - Pompo Stenberg / @pompost

09/28/2018 at 12:58PM

23
#2434 - Bruce Adams / @bruceadams1054

10/06/2018 at 10:02AM

23
#2435 - Sam Kim / @samkimhis

10/11/2018 at 06:59AM

23
#2436 - Cj-bc_sd.sh🐟@mltermコンパイルチャレンジ / @Cj_bc_sd

10/18/2018 at 01:51PM

23
#2437 - Matheus Rezende / @matheusr_dev

10/22/2018 at 08:52AM

23
#2438 - KTL / @katielundsgaard

10/31/2018 at 12:04AM

23
#2439 - i33 / @i3342th

11/01/2018 at 03:28AM

23
#2440 - Constant Bridon / @COBOcto

11/03/2018 at 05:31PM

23
#2441 - Hatsubaku / @hatsubaku

11/04/2018 at 12:15AM

23
#2442 - Zacky Su / @zackykuangkuang

11/04/2018 at 11:07AM

23
#2443 - 张君杰 / @MYHQlDfwOuLvlGf

12/01/2018 at 11:05AM

23
#2444 - NiXiOM / @NiXi0M

12/02/2018 at 11:04PM

23
#2445 - Jacob Xu / @jacobhxu

12/05/2018 at 06:43AM

23
#2446 - sjyu / @sjyu12

12/12/2018 at 02:55AM

23
#2447 - xwlearn / @ixw1991

12/17/2018 at 02:17PM

23
#2448 - David Rivière / @DavidRivire1

12/20/2018 at 10:34AM

23
#2449 - leziak2 / @leziak2

12/24/2018 at 01:14AM

23
#2450 - Jerry Zhu / @xpost2000games

12/27/2018 at 02:25PM

23
#2451 - Andrea / @AndreaRguezFdez

12/29/2018 at 08:46PM

23
#2452 - zenwalker / @zenwalker93

12/30/2018 at 04:01PM

23
#2453 - Nikos Koukis / @bergercookie12

01/02/2019 at 07:18PM

23
#2454 - Luis Rodriguez / @luisthecoder

01/03/2019 at 03:39AM

23
#2455 - Brome / @Brome20887421

01/04/2019 at 06:55PM

23
#2456 - wrglprmft / @wrglprmft

01/19/2019 at 08:29PM

23
#2457 - Graham Singer / @grahamsinger

01/26/2019 at 12:07AM

23
#2458 - LiterallyJustForVimGolf / @just_vim

02/06/2019 at 08:05PM

23
#2459 - Alexander Popov / @Alexand01782341

03/01/2019 at 03:02PM

23
#2460 - əidolon / @eid_lon

03/01/2019 at 08:48PM