On 08/12/08 07:08, Matthew Winn wrote:
> On Sun, 7 Dec 2008 18:05:16 +0100, Markus Heidelberg
> <[EMAIL PROTECTED]> wrote:
>
>> Richard Hartmann, 06.12.2008:
>>> What's the status of this patch? Does it still work with current Vim?
>>> If yes, Markus, would you be willing to merge this into vim_extended?
>> It applied, compiled and worked. But with some bugs, if I've understand
>> the expected behaviour correctly. Before including it I'd like to ask
>> whether there is a newer version available.
>
> It mostly works, but I'm not happy with the fact that if you set vts
> and forget that you've done it then setting ts appears broken because
> it doesn't do anything. (I spent quite a long time trying to work out
> why I couldn't change the tabstop setting, only to discover that I was
> setting vts in my .vimrc for testing and that was overriding ts.)
>
> I should have time to look into it before the end of the year.
>
I don't personally use variable tabs so maybe I'm off-target; but for
some options (such as 'syntax' and 'filetype', not to mention
'compatible') special actions are taken at the exact moment when their
their setting is modified by a ":set" command. Why not say that a ":set
ts=" or ":setlocal ts=", with a value (not ":set ts?" or equivalent)
will, at that instant, set vts to empty in the same range (":set",
":setlocal" or even ":setglobal")? (IIUC, 'ts' is remembered but not
acted upon if 'vts' is nonempty, the way, let's say, 'cindent' is
remembered but not acted upon when 'indentexpr' is nonempty)
Or maybe just say (and document in the help for 'vts', which, as long as
this patch is unofficial, had better be a separate file to be dropped
into $VIM/vimfiles/doc/ and not a patch to $VIMRUNTIME/doc/options.txt
that the next runtime upgrade will undo) that the cases of tabs and
indent are parallel: you had better use ":setlocal" to set 'vts' (or
'indentexpr') and however long they remain nonempty, 'ts' (or
'autoindent', 'cindent' etc.) have no effect in the same buffer(s).
Best regards,
Tony.
--
"The porcupine with the sharpest quills gets stuck on a tree more
often."
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---