Excellent.  That solves the problem.
Thank you very much, Tony.

And I understand that this method may rely on
some not-so-well-defined behavior, as you point out,
but it is preferable to maintaining a set of scripts.


Best regards,
-Dave

On Nov 21, 2006, at 10:37 PM, A.J.Mechelynck wrote:

Dave McCooey wrote:
Well, I was referring to a way without writing a script.
But even so, writing an after-script in this way really
amounts to writing dozens of them, one for each
ftplugin that might override 'iskeyword', unless there
is a way to write a script that always runs last, at
every FileType event, regardless of the file type.
-Dave

You can write an autocommand

        autocmd FileType * setlocal iskeyword-=.

but how to guarantee that it will run after the ftplugins? They are themselves run from an autocommand, which is set up by ":filetype plugin on", and autocommands run in the order they were defined, so putting the above autocommand near the end of your vimrc should work... *unless* for some reason there is something which disables and re-enables ft-plugins.


Best regards,
Tony.

Reply via email to