On Wed, 28 Feb 2007 12:55:23 -0800, Lev Lvovsky <[EMAIL PROTECTED]>
wrote:

> That sort of does what I want, but it ends up moving the "INT" right  
> along with it.  I guess what I'm looking for is a combination of key  
> strokes:
> 
>        COL1  INT,
>        COL2  INT,
>    COL3     INT,
>            ^
> 
> I put my cursor at the column of the '^', on line 3 and press that  
> keystroke, which would simultaneously go to the beginning of the  
> line, <space>, go back to the '^', and '<x>' from that position, to  
> bring the "INT" back a space.
> 
> The real goal of this formatting is to create text that looks like this:
> 
>     SOME_COL  VARCHAR(32),
>   SOME_COL12  INT,
>   BLAH_BLAH1  BOOL,
> 
> I would suppose that this can be made with a vim function right?

I'd think it was likely, given that two days ago I posted a mapping
that does exactly that. In fact you can do it exactly as you describe
above by mapping something to "maI <Esc>`ax". (Unlike my first try,
this one won't stop when it runs out of spaces under the cursor.)

-- 
Matthew Winn

Reply via email to