On Tue, 27 Feb 2007 09:57:55 -0500
Charles E Campbell Jr <[EMAIL PROTECTED]> wrote:

> Lev Lvovsky wrote:
> 
> > I'm sure there's a fancy word for this, but is there any way to
> > pull text to the right?
> >
> > suppose I have the following:
> >
> >      COL1  INT,
> >      COL2  INT,
> >  COL3       INT,
> >
> > I'd like to get "COL3" aligned to "COL1" and "COL2", but to do
> > that, I need to put the cursor behind "COL3", hit space several
> > times, and then align "INT" with the other "INTs".  Can I put my
> > cursor to the right of "COL3", and pull it over to "INT" on the
> > right?
> 
> 
> It sounds like you're interested in aligning text.  For that may I 
> suggest looking into Align.vim (and AlignMaps.vim, which come
> together). To do the alignment, assuming that you're using spaces as
> delimiters:
> 
>   at the upper right hand corner, type  V
>   move cursor to bottom right hand corner.
>   type \tsp
> 
> If you're using tabs as delimiters, then use \tab instead of \tsp.

I just tested it to see if I could get it to work, but I have some
problems. 
I inserted the following
   int foo;
   uint8_t     bar;
   TIME   baz;
   int   hello="world;

and then followed you instructions (used \tsp), but the result
afterwards is:
      int foo;
         uint8_t     bar;
            TIME   baz;
               int   hello="world;




-- 
Kim Schulz    | Private :  http://www.schulz.dk
[EMAIL PROTECTED] | Business:  http://www.devteam.dk
+45 5190 4262 | Sparetime: http://www.fundanemt.com

Reply via email to