> I updated the modeline to be this: # vim: set filetype=tcl
> shiftwidth=4 tabstop=8 expandtab:
>
> With the default 'noexpandtab', the indent/tcl.vim script would create
> a mix of tabs and spaces. One level of indentation (shiftwidth()*1)
> would result in four spaces. Two levels of indentation
> (shiftwidth()*2) would result in a tab character (not 8 spaces).
> I use shiftwidth=4, tabstop=4 in my personal .vimrc, so when I would
> view the tcl.ok file using my personal settings, the indentation
> appeared incorrect due to mixing tabs and spaces.
That is why I tell everybody to never change 'tabstop', only eight is a
value that works well. Anything else will caues trouble, sooner or
later.
> I feel like the tcl.ok file should not only match what the test does
> to tcl.in, but it should also appear correct to a human regardless of
> their personal indentation settings. If 'shiftwidth' and 'tabstop'
> are unequal, then 'expandtab' should be used.
>
> I'm reattaching updated tcl.in and tcl.ok files.
Thanks. I found it didn't work correctly. And that was caused by the
Makefile not picking up the latest changes in the xml indent script.
I'll make a patch for indent/Makefile.
--
"You're fired." (1980)
"You're laid off." (1985)
"You're downsized." (1990)
"You're rightsized." (1992)
(Scott Adams - The Dilbert principle)
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.