When adding the "filetype plugin on" to my .vimrc file, my ftplugin file is
indeed loaded when I edit *.adb files (Ada).
But it seems other stuff does not work in that case. I use vim 6.3.82.
So I made the following test: with no local filetype.vim file and no file
in .vim/ftplugin directory, I added the line "filetype plugin on" to my
..vimrc file.
Then the "Ctrl+]" shortcut which usually search my tagfile does not work
any more. Instead, it echos in the command-line ":call JumpToTad_ada('')",
whereas without the new line in .vimrc it would return a list of choices
for the keyword under the cursor.

In the end, adding that simple line to my .vimrc file seems to break the
default configuration from $VIMRUNTIME directory, even though no particular
file lies in my local $RUNTIMEPATH.

Any idea explaining that strange behaviour?

Regards,
Julien




Internet
[EMAIL PROTECTED] - 07/16/2006 02:22 AM



To:    drchip

cc:    Julien 3 NGUYEN, vim


Subject:    Re: ftplugin not detected

Charles E Campbell Jr wrote:
> [EMAIL PROTECTED] wrote:
>
>> Hi everybody,
>>
>> ViM does not detect my ada ftplugin file in $HOME/.vim/ftplugin/ada.vim,
>> though my runtimepath variable contains ~/.vim .
>> If I source the file manually, my stuff does work.
>> Has anyone an idea of what's wrong?
>>
>>
> Your .vimrc needs
>
>   filetype plugin indent on
>
> Regards,
> Chip Campbell
>
>
>

N.B. "indent" in the above is optional for filetype plugin activation;
and if you source the vimrc_example vim (for instance by

             source $VIMRUNTIME/vimrc_example.vim

near the top of your vimrc), the above ":filetype" command is included.


Best regards,
Tony.



This message and any attachments (the "message") is
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and 
immediately notify the sender. Any use not in accord with 
its purpose, any dissemination or disclosure, either whole 
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message. 
BNP PARIBAS (and its subsidiaries) shall (will) not 
therefore be liable for the message if modified. 

                ---------------------------------------------

Ce message et toutes les pieces jointes (ci-apres le 
"message") sont etablis a l'intention exclusive de ses 
destinataires et sont confidentiels. Si vous recevez ce 
message par erreur, merci de le detruire et d'en avertir 
immediatement l'expediteur. Toute utilisation de ce 
message non conforme a sa destination, toute diffusion 
ou toute publication, totale ou partielle, est interdite, sauf 
autorisation expresse. L'internet ne permettant pas 
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce 
message, dans l'hypothese ou il aurait ete modifie.

Reply via email to