[Gllug] vi indenting
Richard Cohen
richard at vmlinuz.org
Tue Dec 18 17:49:12 UTC 2001
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.
For reference, << will de-indent (outdent?) in the same way.
> JD
Cheers
Richard
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list