Skip to content

Commit c7b133a

Browse files
authored
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.
1 parent e306929 commit c7b133a

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

readme.md

-15
Original file line numberDiff line numberDiff line change
@@ -74,21 +74,6 @@ autocmd FileType vue syntax sync fromstart
7474
See `:h :syn-sync-first` and [this article](http://vim.wikia.com/wiki/Fix_syntax_highlighting)
7575
for more details.
7676

77-
### How can I use existing configuration/plugins in Vue files?
78-
79-
If you already have some configuration for filetypes like html, css and
80-
javascript (e.g. linters, completion), an easy way to use them in Vue files is
81-
by setting compound filetypes like this:
82-
83-
```vim
84-
autocmd BufRead,BufNewFile *.vue setlocal filetype=vue.html.javascript.css
85-
```
86-
87-
:warning: This may cause problems, because some plugins will then treat the
88-
whole buffer as html/javascript/css instead of only the part inside the tags.
89-
Ideally, you should configure everything that you want to use in Vue files
90-
individually.
91-
9277
### How to use commenting functionality with multiple languages in Vue files?
9378

9479
#### [caw.vim](https://github.com/tyru/caw.vim)

0 commit comments

Comments
 (0)