Luke Mewburn
2008-12-10 00:35:40 UTC
--vAr1W/eR4LdSeo08
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Hi folks.
I've been experimenting with a new option to nvi:
expandtab, et [off]
Prevent the use of <tab> characters in leading whitespace
when shifting text, autoindenting, indenting with
<control-T>, or outdenting with <control-D>.
I find this more useful than prefiltering with expand(1) and
then setting tabstop to a large value to avoid the "optimization"
to tabs that ^T, ^D, < or > perform.
I would rather not have to change tabstop like this; for a variety of
reasons I find that leaving tabstop at 8 is sensible practice.
Currently, my modification doesn't alter the behaviour of <tab>
in insert mode; it still inserts \t. Changing this is a fair bit
trickier; I don't use <tab> anyway, since I have shiftwidth
set to a different value to tabstop.
(I originally called it "expandtabs", then noticed that vim(1)
has an "expandtab" option that sets similar behaviour.)
thoughts?
Luke.
--vAr1W/eR4LdSeo08
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (NetBSD)
iEYEARECAAYFAkk/DrkACgkQpBhtmn8zJHLDaACgkxGoaldcWk+l8wJxeAmbkcd9
W1kAn2d3IhKyBHt9sDkWWbl5zv+FNzQq
=TBzu
-----END PGP SIGNATURE-----
--vAr1W/eR4LdSeo08--
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Hi folks.
I've been experimenting with a new option to nvi:
expandtab, et [off]
Prevent the use of <tab> characters in leading whitespace
when shifting text, autoindenting, indenting with
<control-T>, or outdenting with <control-D>.
I find this more useful than prefiltering with expand(1) and
then setting tabstop to a large value to avoid the "optimization"
to tabs that ^T, ^D, < or > perform.
I would rather not have to change tabstop like this; for a variety of
reasons I find that leaving tabstop at 8 is sensible practice.
Currently, my modification doesn't alter the behaviour of <tab>
in insert mode; it still inserts \t. Changing this is a fair bit
trickier; I don't use <tab> anyway, since I have shiftwidth
set to a different value to tabstop.
(I originally called it "expandtabs", then noticed that vim(1)
has an "expandtab" option that sets similar behaviour.)
thoughts?
Luke.
--vAr1W/eR4LdSeo08
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (NetBSD)
iEYEARECAAYFAkk/DrkACgkQpBhtmn8zJHLDaACgkxGoaldcWk+l8wJxeAmbkcd9
W1kAn2d3IhKyBHt9sDkWWbl5zv+FNzQq
=TBzu
-----END PGP SIGNATURE-----
--vAr1W/eR4LdSeo08--