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 60 remaining solutions by signing in and submitting your own entry
#61 Édouard M'tou / DouardM - Score: 15 - 12/18/12 @ 21:00
qqvEr_Wq3@qo<Esc>ZZ

0 comments

#62 vg41 / vg41 - Score: 15 - 12/21/12 @ 10:08
:%s/\S/_/g<CR>o<Esc>ZZ

0 comments

#63 Kajetan Bojko / KajetanBojko - Score: 15 - 12/22/12 @ 17:19
qavEr_wq3@ao<Esc>ZZ

0 comments

#64 Toto l'haricot / nico_le_terribl - Score: 15 - 12/26/12 @ 09:29
qqvEr_Wq3@qo<Esc>ZZ

0 comments

#65 Yavor Atov / YavorAtOff - Score: 15 - 01/03/13 @ 13:15
qqv%r_Wq3@qo<Esc>ZZ

0 comments

#66 zealotrush / zealotrush - Score: 15 - 01/28/13 @ 10:28
:%s/\S/_/g<CR>o<Esc>ZZ

0 comments

#67 Matt Redding / MattRedding - Score: 15 - 02/22/13 @ 12:12
:s/\S/\_/g<CR>o<Esc>ZZ

0 comments

#68 Aaron Bieber / aaronbieber - Score: 15 - 06/02/13 @ 22:51
:%s/\S/_/g<CR>o<C-O>ZZ

0 comments

#69 Tj / yrddy - Score: 15 - 02/19/16 @ 09:15
qqvEr_wq3@qo<Esc>ZZ

0 comments

#70 Daniel Lundin / danielundin - Score: 16 - 12/19/12 @ 11:14
qqvf)r_wq3@qo<Esc>ZZ

0 comments

#71 foo / foo88832727 - Score: 16 - 10/19/13 @ 17:30
:s/[^ ]/_/g<CR>o<C-O>ZZ

0 comments

#72 sebtyp / sebtyp - Score: 17 - 12/18/12 @ 19:57
:s/[^\ ]/_/g<CR>o<Esc>ZZ

0 comments

#73 Max Sherman / johnislarry - Score: 17 - 12/19/12 @ 12:48
:%s/[^ ]/_/g<CR>o<Esc>ZZ

0 comments

#74 Eric Andres / eric_m_andres - Score: 17 - 12/21/12 @ 03:57
:%s/[^ ]/_/g<CR>o<Esc>ZZ

0 comments

#75 ɐʇnɥsɐpoʇ / todashuta - Score: 17 - 03/25/15 @ 13:40
:%s/[^ ]/_/g<CR>o<Esc>ZZ

0 comments

#76 Ravi S Sinha / ambidextrousTx - Score: 18 - 12/19/12 @ 07:13
/[^ ]<CR>:s//_/g<CR>o<Esc>ZZ

0 comments

Created by: uzver

76 active golfers, 129 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 - Chase Stubblefield / sterlingchase

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

14
#31 - Christopher Harrison / Xophmeister

01/28/2013 at 12:18PM

14
#32 - Steve Tjoa / stevetjoa

02/06/2013 at 08:22PM

14
#33 - Joel Elkins / dice_tea

03/03/2013 at 03:49AM

14
#34 - Niil Öhlin / Niil94

03/05/2013 at 06:50PM

14
#35 - wushexu / wushexu

05/24/2013 at 03:48PM

14
#36 - Matthew James / Matthew55493344

06/08/2013 at 06:01PM

14
#37 - Javier Blanco / jbgutierrez

06/20/2013 at 10:35PM

14
#38 - Woojung Kim 김우중 / _kimwz

07/17/2013 at 01:33AM

14
#39 - Tom Gould / tomgould92

07/17/2013 at 06:45AM

14
#40 - Ingo / ist3fani

07/28/2013 at 06:08PM

14
#41 - yaon / yaon4

09/10/2013 at 03:47PM

14
#42 - Dom Armstrong / dom_cycleface

09/17/2013 at 12:54PM

14
#43 - brett / brettyukich

09/24/2013 at 09:35PM

14
#44 - n.st / 0013901644043f9

10/04/2013 at 05:02AM

14
#45 - Zach Kemp / zvksf

01/02/2014 at 11:21PM

14
#46 - Bambu / bambumandinga

01/18/2014 at 05:08PM

14
#47 - cj / cj01101

02/04/2014 at 11:46PM

14
#48 - Jared Meyering / Jmeyering

02/28/2014 at 09:00PM

14
#49 - Joonas Pihlajamaa / jokkebk

03/16/2014 at 06:37PM

14
#50 - Caek / Caek_

08/01/2014 at 04:06AM

14
#51 - James / Dronak

09/20/2014 at 06:12PM

14
#52 - Jose Gutierrez / Jogusa

10/07/2014 at 08:56PM

14
#53 - deris / deris0126

11/05/2014 at 03:13PM

14
#54 - Elizabeth / sprinkles418

01/27/2015 at 05:05PM

14
#55 - mark0829 / mark0829

03/20/2015 at 12:54AM

14
#56 - pftb12345 / pftb12345

04/24/2015 at 01:24AM

14
#57 - Benny Wong / bdotdub

05/23/2015 at 03:12AM

14
#58 - Jon Krause / jkrause314

12/16/2015 at 10:33PM

14
#59 - Marcin / Marcin89439917

01/01/2017 at 01:43PM

15
#60 - Tesnorth / Tesnorth

12/18/2012 at 08:05PM

15
#61 - Édouard M'tou / DouardM

12/18/2012 at 09:00PM

15
#62 - vg41 / vg41

12/21/2012 at 10:08AM

15
#63 - Kajetan Bojko / KajetanBojko

12/22/2012 at 05:19PM

15
#64 - Toto l'haricot / nico_le_terribl

12/26/2012 at 09:29AM

15
#65 - Yavor Atov / YavorAtOff

01/03/2013 at 01:15PM

15
#66 - zealotrush / zealotrush

01/28/2013 at 10:28AM

15
#67 - Matt Redding / MattRedding

02/22/2013 at 12:12PM

15
#68 - Aaron Bieber / aaronbieber

06/02/2013 at 10:51PM

15
#69 - Tj / yrddy

02/19/2016 at 09:15AM

16
#70 - Daniel Lundin / danielundin

12/19/2012 at 11:14AM

16
#71 - foo / foo88832727

10/19/2013 at 05:30PM

17
#72 - sebtyp / sebtyp

12/18/2012 at 07:57PM

17
#73 - Max Sherman / johnislarry

12/19/2012 at 12:48PM

17
#74 - Eric Andres / eric_m_andres

12/21/2012 at 03:57AM

17
#75 - ɐʇnɥsɐpoʇ / todashuta

03/25/2015 at 01:40PM

18
#76 - Ravi S Sinha / ambidextrousTx

12/19/2012 at 07:13AM