[Gllug] vi indenting

Bruce Richardson itsbruce at uklinux.net
Tue Dec 18 19:44:03 UTC 2001


On Tue, Dec 18, 2001 at 05:49:12PM +0000, Richard Cohen wrote:
> On Tue, 18 Dec 2001, Jonathan Dye wrote:
> 
> > Can anyone tell me how to indent several lines at once with spaces in vi?
> 
> Type the number of lines to indent, followed by >> to indent by sw spaces
> (where sw is a vi variable - do ":set sw" to see the value and e.g. ":set
> sw=4" to set to 4 spaces).
> 
> I find it easier to use the visual select in vim, rather than giving a
> count, but each to their own.

And of course you can do > followed by a motion, so >} does to the end
of the paragraph.

-- 
Bruce

A problem shared brings the consolation that someone else is now
feeling as miserable as you.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 261 bytes
Desc: not available
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20011218/69593734/attachment.pgp>


More information about the GLLUG mailing list