I have a plugin for detecting and syntax highlighting *.k
- source files in a given programming language. My ~/.vimrc
contains only:
se nocp rtp+=~/k/vim-k " the language plugin
sy on
And there isn't any ~/.vim
directory.
After opening a *.k
file, :scriptnames
shows kwt.vim
, cpp.vim
, and c.vim
from $VIMRUNTIME/syntax
before the k.vim
file from my language plugin. So, Vim must be doing filetype detection twice - initially through its built-in plugins as a "kwt" file (which leads to other problems; but to keep the question focused, I won't go into detail), and then again through my plugin.
How can I suppress the initial filetype detection?