jacquief (2) [Avatar] Offline
#1
On page 74, there is an awesome tip on how to configure vim for converting HTML to JavaScript, by automatically concating the strings.

I really want to know if you have something similar for how you insert aligned centered comments in the JS files? Such as

//---------------- BEGIN MODULE SCOPE VARIABLES -------------------
//----------------- END MODULE SCOPE VARIABLES ---------------------

Thank you.
michael.mikowski (247) [Avatar] Offline
#2
Re: Configure Editor for Sectional Comments "//---"
Hi Jacquief:

Sorry, I don't have such an automation smilie. With VIM, I always just yank the begin and end lines from an existing use and then modify them in place. I rarely use these kinds of dividers outside of their use as presented in the template - and those are already done smilie

Cheers, Mike
jacquief (2) [Avatar] Offline
#3
Re: Configure Editor for Sectional Comments "//---"
I see your point.
Thank you for the swift reply.

And loving the book so far. I'm finishing chapter 3. smilie
michael.mikowski (247) [Avatar] Offline
#4
Re: Configure Editor for Sectional Comments "//---"
Thanks! Let me know if you have other issue smilie