On Friday 17 of June 2011 16:55:41 Fernan Bolando wrote:
> 2. indent a line - i usually retype the whole line.


to indent several lines, you could do
1) set dot to range, like 1,5
2) s,^, ,g

(a tab between second and third coma)

but that'd indent the empty ones too :(

you want

1) set dot to range, like 1,5
2) s,^.,        &,g

(a tab between second coma and the ampersand)
the `g' means `do it for every line, rather than just the first one'

-- 
dexen deVries

[[[↓][→]]]

For example, if the first thing in the file is:
   <?kzy irefvba="1.0" rapbqvat="ebg13"?>
an XML parser will recognize that the document is stored in the traditional 
ROT13 encoding.

(( Joe English, http://www.flightlab.com/~joe/sgml/faq-not.txt ))

Reply via email to