* Lev Lvovsky [2006.12.05 13:53]:
> how can I align text under and after the cursor
> position to a  specific column number?  

:.,$s/^\s*/   /g

will align the first non-blank on the fourth
column, from the cursor's line to the end of the
file.

> and probably just as important, how can I  
> find out which column number a cursor is at ;)?

In normal mode:
:h g_Ctrl-G

In scripts:
:h getpos()

or add %c to your status line to have it all the
time.

:h statusline<CR>7}

-- 
JR

Reply via email to