On 10/16/06, jerry gay <[EMAIL PROTECTED]> wrote:
for vim users, these settings may help find trailing spaces and leading tabs:
set list
set listchars=trail:-,tab:\.\
note in this case, the trailing space on the second line is intentional.
~jerry
Note that ":set list" all by itself will reveal tabs and trailing
space with the default settings; the custom listchars are optional.
(Although if you ever do want hard tabs in your files, setting the
tab: listchars setting is is advised, since otherwise the tabs
collapse to ^I. With a custom value for tab:, the width of the
tabstop is maintained in the display.)
In this case, however, hard tabs seem to be taboo according to the
coding standards. (And the crowd goes wild!) So another good thing to
set in vim is 'expandtab', which automatically replaces tabs you type
with however many spaces are needed to get to the next tabstop (whose
spacing you can control with the appropriately-named 'tabstop'
option).
Once expandtab is on, you can issue a ":retab" command to replace any
existing hard tabs with spaces.
--
Mark J. Reed <[EMAIL PROTECTED]>