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

0 comments


Created by: @uzver

79 active golfers, 134 entries

Leaderboard (lowest score wins):
13
#1 - Urtica dioica / @udioica

12/19/2012 at 02:19AM

13
#2 - Kerson Hsiao / @KersonHsiao

12/19/2012 at 03:08AM

13
#3 - Hubba / @HubbaBubbaFett

12/19/2012 at 06:37PM

13
#4 - Victor Ramirez / @virako

12/21/2012 at 11:22AM

13
#5 - Xinruo Sun / @xiaoruoruo

12/23/2012 at 10:56AM

13
#6 - Alec Goebel / @zego5360

01/04/2013 at 04:03AM

13
#7 - Korbinian Stoemmer / @PaulSmecker

03/09/2013 at 03:53PM

13
#8 - Chasetopher / @chasetopherlee

04/29/2013 at 12:24AM

13
#9 - Marco Hinz / @_mhinz_

05/24/2013 at 06:23PM

13
#10 - Petro Тrouq / @zulolosi

08/28/2013 at 11:12AM

13
#11 - John Braxler / @braxler

06/02/2014 at 12:39PM

13
#12 - Kai Yuan / @kentyuan

09/20/2014 at 10:35PM

13
#13 - Evan Coleman / @edc1591

05/23/2015 at 03:15AM

13
#14 - Raj / @brshenoy

05/23/2015 at 03:21AM

14
#15 - Conner McDaniel / @connermcd

12/18/2012 at 08:45PM

14
#16 - DR / @dde81

12/18/2012 at 09:22PM

14
#17 - Tim Chase / @gumnos

12/18/2012 at 10:36PM

14
#18 - joe di castro / @joe_di_castro

12/19/2012 at 12:04PM

14
#19 - 無ん垢の叫び / @john_ababa

12/20/2012 at 04:01PM

14
#20 - Marcin Sza / @coot_

12/20/2012 at 07:03PM

14
#21 - h_east (トロッコ6個) / @h_east

12/21/2012 at 06:02AM

14
#22 - Pawel Obrok / @mrYapee

12/21/2012 at 01:18PM

14
#23 - faul_sname / @faul_sname

12/22/2012 at 05:06AM

14
#24 - jk / @kewnapse

12/23/2012 at 12:07AM

14
#25 - Marko Tibold / @markotibold

12/24/2012 at 12:04AM

14
#26 - Global Maquereau / @GlobalMaquereau

12/24/2012 at 01:52PM

14
#27 - JonLz / @LzJon

12/26/2012 at 03:47PM

14
#28 - Yann Moisan / @YannMoisan

01/02/2013 at 10:54PM

14
#29 - Vasil Sakarov / @vsakarov

01/07/2013 at 12:07PM

14
#30 - CY / @wongcy0

01/28/2013 at 04:00AM