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
#31 - iikieh / @iikieh

05/06/2016 at 05:10PM

14
#32 - Ala' Ibrahim / @alaa_ibrahim

05/11/2016 at 05:16AM

14
#33 - Derrick Cohodas / @DerrickCohodas

05/11/2016 at 08:06AM

14
#34 - Atrament / @Atrament

05/11/2016 at 01:39PM

14
#35 - Tobias Kulschewski / @TKulschewski

05/11/2016 at 02:02PM

14
#36 - Majo / @majodurco

05/15/2016 at 05:04PM

14
#37 - Slawek Zachcial / @SlawekZachcial

05/17/2016 at 10:06PM

14
#38 - Arijus / @argshook

05/19/2016 at 02:52PM

14
#39 - Александр Уваров / @sanyauvarov

05/19/2016 at 08:27PM

14
#40 - ナイスショット / @_nice__shot_

05/23/2016 at 01:53AM

14
#41 - Eli Zucker / @EliZucker

05/26/2016 at 05:53PM

14
#42 - pwahs / @PwahsWeisz

06/01/2016 at 10:11AM

14
#43 - Miłosz Łakomy / @foobar01123

06/02/2016 at 09:40AM

14
#44 - Zach Boatrite / @ZachBoatrite

06/05/2016 at 04:55AM

14
#45 - tgmeng / @lazy_fabric

06/07/2016 at 02:49AM

14
#46 - Ameen P / @Ameen_P1

06/07/2016 at 05:55PM

14
#47 - Paweł Smołka / @pawelsmolka

06/14/2016 at 02:17PM

14
#48 - TaoChen / @632143592Tao

06/15/2016 at 06:42AM

14
#49 - Kirill Sidenko / @KirillSidenko

06/19/2016 at 11:02AM

14
#50 - Byron Marohn / @byron_marohn

06/23/2016 at 12:02AM

14
#51 - Perry van Schaijk / @PvSchaijk

06/30/2016 at 01:48PM

14
#52 - Davide / @DvdMgr

07/01/2016 at 09:23AM

14
#53 - LordFoom / @LordFoom

07/01/2016 at 09:25AM

14
#54 - Pedro Santos / @pedrosans

07/07/2016 at 05:38AM

14
#55 - herbage / @herbage2

07/11/2016 at 01:52PM

14
#56 - Girish Gokul / @girishgoku

07/14/2016 at 03:20AM

14
#57 - Sandeep Dhavale / @sandeep_dhavale

07/15/2016 at 12:02AM

14
#58 - Steffen Köhler / @Baertierchen

07/16/2016 at 05:04PM

14
#59 - Alonzo / @tolver_a

07/21/2016 at 03:11AM

14
#60 - Boubou / @brahimalekhine

07/24/2016 at 02:46PM