[prev in list] [next in list] [prev in thread] [next in thread] 

List:       vim
Subject:    Formatting commnets in C code
From:       "Roy, Gilles" <Gilles.Roy () arc ! com>
Date:       2003-04-30 0:55:16
[Download RAW message or body]


Hi,

Is it possible to have "gq" only format comments in C code, and not the
actual C code? I use formatoptions=croq but "gq" still affects C code.
For example if I do "gq" on:

   a = 1;
   b = 2;

I will get:

   a = 1; b = 2;


Thanks,
Gilles

-----------------------------------------------------------
Unless otherwise expressly stated, this message does not
create or vary any contractual relationship between you and 
ARC International.  The contents of this e-mail may be 
confidential and if you have received it in error, please 
delete it from your system, destroy any hard copies and 
telephone the above number.  Incoming emails to ARC may be 
subject to monitoring other than by the addressee.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic