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 50d0c33daa503f000200000f

Groups magic

Regexp or macros for string converting: (a) -> ___ (abc) -> ____ (abcd) -> ______ All in the '(' replace to _ multiply by char count + ()

Start file
(a) (abc) (abcd) (123456)
End file
___ _____ ______ ________

View Diff

1c1,2
< (a) (abc) (abcd) (123456)
---
> ___ _____ ______ ________
> 

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 79 remaining solutions by signing in and submitting your own entry
#80 Ravi S Sinha / @ambidextrousTx - Score: 18 - 12/19/12 @ 07:13
/[^ ]<CR>:s//_/g<CR>o<Esc>ZZ

0 comments


Created by: @uzver

80 active golfers, 136 entries

Leaderboard (lowest score wins):
14
#31 - CY / @wongcy0

01/28/2013 at 04:00AM

14
#32 - Christopher Harrison / @Xophmeister

01/28/2013 at 12:18PM

14
#33 - Steve Tjoa / @stevetjoa

02/06/2013 at 08:22PM

14
#34 - Joel Elkins / @dice_tea

03/03/2013 at 03:49AM

14
#35 - Niil Öhlin / @Niil94

03/05/2013 at 06:50PM

14
#36 - wushexu / @wushexu

05/24/2013 at 03:48PM

14
#37 - Matthew James / @Matthew55493344

06/08/2013 at 06:01PM

14
#38 - Javier Blanco / @jbgutierrez

06/20/2013 at 10:35PM

14
#39 - Woojung Kim 김우중 / @_kimwz

07/17/2013 at 01:33AM

14
#40 - Tom Gould / @tomgould92

07/17/2013 at 06:45AM

14
#41 - Ingo / @ist3fani

07/28/2013 at 06:08PM

14
#42 - yaon / @yaon4

09/10/2013 at 03:47PM

14
#43 - Dom Armstrong / @dom_cycleface

09/17/2013 at 12:54PM

14
#44 - brett / @brettyukich

09/24/2013 at 09:35PM

14
#45 - n.st / @0013901644043f9

10/04/2013 at 05:02AM

14
#46 - Zach Kemp / @zvksf

01/02/2014 at 11:21PM

14
#47 - Bambu / @bambumandinga

01/18/2014 at 05:08PM

14
#48 - cj / @cj01101

02/04/2014 at 11:46PM

14
#49 - Jared Meyering / @Jmeyering

02/28/2014 at 09:00PM

14
#50 - Joonas Pihlajamaa / @jokkebk

03/16/2014 at 06:37PM

14
#51 - Caek / @Caek_

08/01/2014 at 04:06AM

14
#52 - James / @Dronak

09/20/2014 at 06:12PM

14
#53 - Jose Gutierrez / @Jogusa

10/07/2014 at 08:56PM

14
#54 - deris / @deris0126

11/05/2014 at 03:13PM

14
#55 - Elizabeth / @sprinkles418

01/27/2015 at 05:05PM

14
#56 - mark0829 / @mark0829

03/20/2015 at 12:54AM

14
#57 - pftb12345 / @pftb12345

04/24/2015 at 01:24AM

14
#58 - Benny Wong / @bdotdub

05/23/2015 at 03:12AM

14
#59 - Jon Krause / @jkrause314

12/16/2015 at 10:33PM

14
#60 - Marcin / @Marcin89439917

01/01/2017 at 01:43PM