Hi Yakov,
On Sunday 10 September 2006 12:27, Yakov Lerner wrote:
> I created file ~/bat/my.dir.vim/after/ftplugin/c/xxx.vim containing line
>     call input("This is after/ftplugin/c/xxx.vim>")
> and file ~/bat/my.dir.vim/after/ftplugin/cpp/cpp_xyz.vim containing line
>    call input("This is after/ftplugin/cpp/cpp_xyz.vim")
> When I do 'set ft=cpp', both files are loaded.
> When I do 'set ft=c', only 1st file is loaded.
> So my vim7 behaves as expected.
> Mine is vim7.0.86
>
> I suggest that you insert 'call input()' with distinct prompt into your
> ~/.vim/after/ftplugin/cpp/*  to distinguish between case (1) whether
> those files are not loaded vs (2) files are loaded but do not take
> effect. Additionally you can use :scriptnames to see whether scripts
> are loaded.
>
> Which vim version is yours.
7.0.94

I followed your advice and great was my surprise to see that it works as
expected. I've been trying in vain to recreate the situation where it
didn't work. Somewhere I must have done something wrong, and corrected it
in the meantime, but I'll be darned if I know what:) I think I will have
to write this one off to too many late nights.

Apologies for the unnecessary post.


Marius

Reply via email to