Monday, August 15, 2011

Re: Align one line to another

On Aug 14, 11:42 am, Tim Johnson <t...@johnsons-web.com> wrote:
> I'd like to find a way to align one or more lines with the same
> indentation as (say) the previous line:
> Example :
>     """Main entry point for this module.
> Process all.
> Delete all."""
> To
>     """Main entry point for this module.
>     Process all.
>     Delete all."""
> I'm looking at a 'Quick reference Card' athttp://tnerual.eriogerg.free.fr/vimqrc.htmland
> under
> 'Advanced insertion'
> are some clues, but <blush> I am unable to decipher them.
> thanks

What about:

:set autoindent
(visually select area including lines you wish to indent, NOT the line
whose indent you wish to match)
=

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: