Re: Your best text/code formatting trick

2006-11-12 Thread panshizhu
Kim Schulz <[EMAIL PROTECTED]> 写于 2006-11-13 04:29:53: > I am currently looking into different tricks for formatting text, > code, etc. in Vim. > I guess most users know the format-paragraph command gqq or the > reindent entire code 1G=G > But are there any other neat tricks - which ones are your f

Re: Your best text/code formatting trick

2006-11-12 Thread Tim Chase
I am currently looking into different tricks for formatting text, code, etc. in Vim. I guess most users know the format-paragraph command gqq or the reindent entire code 1G=G But are there any other neat tricks - which ones are your favorites? Well, though not exactly text/code reformatting,

RE: Your best text/code formatting trick

2006-11-12 Thread Suresh Govindachar
Kim Schulz asked on November 12, 2006 12:30 PM > > Hi, > > I am currently looking into different tricks for formatting > text, code, etc. in Vim. I guess most users know the format- > paragraph command gqq or the reindent entire code 1G=G But are > there any other neat tricks - wh

Re: Your best text/code formatting trick

2006-11-12 Thread Bill McCarthy
On Sun 12-Nov-06 2:29pm -0600, Kim Schulz wrote: > I guess most users know the format-paragraph command gqq Actually, gqq (or gqgq) formats a line, not a paragraph. (It may look like a paragraph reformat when there are one or more sentences on a single line. In that case it behaves like gqip - f

RE: Your best text/code formatting trick

2006-11-12 Thread Max Dyckhoff
I use =a{ all the time. I often write blocks of code using snippets from other places (function prototypes, member variables, conditionals, and so on), and =a{ will format just that block. It also looks vaguely like a smiley face, which is nice :) Max > -Original Message- > From: Kim