-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thursday 03 July 2003 12:05, Jason Louie wrote:
>     Hello all, first I would like to thank Rob on his presentation on
> Emacs.  It was informative.  Now my question is directed to the vi users
> out there.  Emacs has a feature to auto indent a file / line / section
> automatcially based on the syntax.  Is there a similar feature in vim?

:set cindent

(you can also do autoindent, but i find cindent to be better... the indenting 
system is configurable via text files, but i find the defaults work just 
fine)

to indent a line that was poorly indented, simply type == in command mode. to 
do the next 45 lines do: 45 ==

voila.

- -- 
Aaron J. Seigo
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE: The 'K' is for 'kick ass'
http://www.kde.org       http://promo.kde.org/3.1/feature_guide.php
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)

iD8DBQE/BHXJ1rcusafx20MRAs6SAJ9ZMXdF5jipsJvxyRLLSMvAZmmoIgCfVwDC
wFHVB8gZEwXy6XjkFyyK6wM=
=nYXX
-----END PGP SIGNATURE-----

Reply via email to