--nextPart5447285.OvSd6mnBC6
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Quoth Ryan Davis:
>=20
> On Dec 15, 2007, at 13:12 , Konrad Meyer wrote:
>=20
> >> (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=3DG".
>=20
> read the code above again and tell me that 'gg=3DG' does all that...

It won't remove trailing whitespace but that's more of an EPEBCAK.

Regards,
=2D-=20
Konrad Meyer <konrad / tylerc.org> http://konrad.sobertillnoon.com/

--nextPart5447285.OvSd6mnBC6
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)

iD8DBQBHZM5nCHB0oCiR2cwRAm9nAJ9tZ0xioFoPSx/98k5gzv0QDXMaqACfWXh3
rVgxavHWGqMXnFSFkDYekCE=
=rR9t
-----END PGP SIGNATURE-----

--nextPart5447285.OvSd6mnBC6--