Remove tip about filetype=vue.html.javascript.css

close #131 

Setting this option seems to do more harm than good. To avoid confusion, it's better to remove it altogether.

Currently, the recommended approach to use existing plugins for HTML, CSS or JavaScript, is to explicitly configure that plugin to support Vue files.
This commit is contained in:
Adriaan Zonnenberg
2019-03-22 12:02:24 +01:00
committed by GitHub
parent e306929b27
commit c7b133a66e

View File

@@ -74,21 +74,6 @@ autocmd FileType vue syntax sync fromstart
See `:h :syn-sync-first` and [this article](http://vim.wikia.com/wiki/Fix_syntax_highlighting)
for more details.
### How can I use existing configuration/plugins in Vue files?
If you already have some configuration for filetypes like html, css and
javascript (e.g. linters, completion), an easy way to use them in Vue files is
by setting compound filetypes like this:
```vim
autocmd BufRead,BufNewFile *.vue setlocal filetype=vue.html.javascript.css
```
:warning: This may cause problems, because some plugins will then treat the
whole buffer as html/javascript/css instead of only the part inside the tags.
Ideally, you should configure everything that you want to use in Vue files
individually.
### How to use commenting functionality with multiple languages in Vue files?
#### [caw.vim](https://github.com/tyru/caw.vim)