--nextPart1682669.dCCbhvgbES Content-Type: text/plain; charset so-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Quoth Vasyl Smirnov: > In Emacs I use the following function, found somewhere on the net. > > (defun iwb () > "Indent whole buffer." > (interactive) > (delete-trailing-whitespace) > (indent-region (point-min) (point-max) nil) > (untabify (point-min) (point-max))) > > it relies on ruby-mode.el to indent Ruby sources. > Probably something similar can be written/found for vim. Yes, the vim for this is very complicated, you have to type "gg=G". Regards, -- Konrad Meyer <konrad / tylerc.org> http://konrad.sobertillnoon.com/ --nextPart1682669.dCCbhvgbES Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQBHZENDCHB0oCiR2cwRApaoAKDR+Prc2mFkhynL4tNVzl0UgBYlPACbBaAy DxcxY0dAzFNIRv3q0b+Amjk0i2 -----END PGP SIGNATURE----- --nextPart1682669.dCCbhvgbES--