On Tue, Feb 24, 2004 at 03:51:06PM +0000, Greg Farrell mentioned:
> how do I make a tab expand into say 4 spaces in vi? I googled, and
> found how to make a tab a specific width, but I'd prefere to have it
> expand to that many spaces instead.
>> Anyone got a good .rc for python editing? I've got auto-indent and
> syntax highlighting on. Anything else handy out there?
A really good start is:
set background=dark
set shiftwidth=4 " this is the >/< controlled indenting
set tabstop=4
set expandtab " soft tabs
I used to have "tab" setup in insert mode to be "autoformat", just like
XEmacs, but I seem to have lost that ability over the years. Anyone know
what it is ?
That, coupled with "set cindent" is dead handy for reformatting code.
John
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!