Monday, July 30, 2012

Re: vim: who/where/when set my ft?

On 31/07/12 11:03 AM, ping wrote:
> On 7/30/2012 5:45 PM, Tim Chase wrote:
>> On 07/30/12 16:38, ping wrote:
>>> guys:
>>> I just run into an annoying issue.
>>> I open a text file and found it was set to some filetype (say, asciidoc).
>>> this is not what I expected.
>>> how to find out which config lines in which config file/script set this?
>>
>> I'd check the output of
>>
>> :verbose set filetype?
>>
>> which should tell you where it was last set.
>>
>> -tim
>>
>>
>
> surprisingly...
>
> filetype=asciidoc
> Last set from /etc/vim/ftdetect/asciidoc_filetype.vim
>
> what is that /etc/vim/ folder doing here?
>
>
> runtimepath=~/.vim,/usr/share/vim/vimfiles,/usr/share/vim/vim73,/usr/share/vim/vimfiles/after,~/.vim/after

That is surprising. Some other script must be calling it, I suppose, or
some directory is symlinked. Maybe

:scriptnames

will give you some clues. See if you can find that file in it, and look
at what is directly before it--maybe that is sourcing it.

Ben.



--
You received this message from the "vim_use" 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

No comments:

Post a Comment