On 31/07/12 03:03, 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
regards
ping
Look near the middle of the output of :version, where I have the following:
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
user exrc file: "$HOME/.exrc"
system gvimrc file: "$VIM/gvimrc"
user gvimrc file: "$HOME/.gvimrc"
system menu file: "$VIMRUNTIME/menu.vim"
fall-back for $VIM: "/usr/local/share/vim"
what do you see? If you got your Vim from a Linux distribution (rather
than by compiling it yourself, as I do) you might have different values
for some of the above.
Also, as Ben said, looking at the output of :scriptnames could be
enlightening. That command tells you which scripts Vim has sourced, and
list them in the order in which they were first encountered in this
session. This "/etc/vim/ftdetect/asciidoc_filetype.vim" may have been
sourced from one of the scripts listed before it, or from an autocommand
(you can list them all with the :au command).
Best regards,
Tony.
--
CUSTOMER: Well, can you hang around a couple of minutes? He won't be
long.
MORTICIAN: Naaah, I got to go on to Robinson's -- they've lost nine
today.
CUSTOMER: Well, when is your next round?
MORTICIAN: Thursday.
DEAD PERSON: I think I'll go for a walk.
The Quest for the Holy Grail (Monty
Python)
--
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