From: Konrad Meyer Date: 2007-12-16T06:12:37+09:00 Subject: Re: autoindenting ruby --nextPart1682669.dCCbhvgbES Content-Type: text/plain; charset="iso-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. >=20 > (defun iwb () > "Indent whole buffer." > (interactive) > (delete-trailing-whitespace) > (indent-region (point-min) (point-max) nil) > (untabify (point-min) (point-max))) >=20 > 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=3DG". Regards, =2D-=20 Konrad Meyer 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+Amjk= =3Ki2 -----END PGP SIGNATURE----- --nextPart1682669.dCCbhvgbES--