NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
vi? What about vim? (Score:2)
Vim:
And your troubles are over :)
... until you have to edit a friggin' Makefile :(
(expandtab converts tabs to their equivalent spaces. There are many similar commands to get fine-grained control over this)
Of course, if you just want to show unwanted whitespace, we have plenty of builtin ways of doing that [wikia.com].
Reply to This
Major modes are major useful. (Score:2)
You mean vim isn't smart enough to know you need leading tabs in Makefiles? Hmm, too bad.
Re: (Score:1)
No, Ovid just isn’t smart enough yet to tell it. :-)
From my
.vimrc:Re: (Score:1)
Oh, and the
makefiletype plugin could easily set this automatically. I don’t know why it doesn’t, but it doesn’t bother me that it does not, either.Re: (Score:2)
It's configurable on a "per filetype" basis. I just don't edit makesfiles often enough to care and I set it manually then.
Re: (Score:1)
The real equivalent to what Michael is doing is called
:set list, which will render tabs as ^I. In vim but not vi you can also use thelistcharsvariable to control how tabs are rendered, as well as various other invisible things like end of line, trailing whitespace, line cut-off at screen edges, etc.