문제

How, using Vundle, can I load a ftplugin for a filtype it wasn't written for?

In my old .vimrc (before I started using Vundle), I would do something like this:

au FileType xquery ru fplugin/xhtml.vim

But that doesn't seem to be doing the trick.

...any thoughts? Thanks!

도움이 되었습니까?

해결책 2

OK, so I'm just coming back to this, and it turns out that what I had up there actually does work. Except that the line that I'm actually using in Vim uses a lower case "t" in "Filetype". Not sure if that was the issue, but it works perfectly now:

au Filetype xquery ru ftplugin/xhtml.vim

다른 팁

(Not a Vundle user, and I think it should not affect your command.)

Instead of the :autocmd, create a file ftplugin/xquery.vim (either under ~/.vim/ or as a bundle), with the following contents:

runtime! ftplugin/xhtml.vim
runtime! ftplugin/xhtml_*.vim ftplugin/xhtml/*.vim

(This assumes you have :filetype plugin on.)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top