From c7b133a66ec9dcf2200d1d2a4a7ad38909c5f539 Mon Sep 17 00:00:00 2001 From: Adriaan Zonnenberg Date: Fri, 22 Mar 2019 12:02:24 +0100 Subject: [PATCH] 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. --- readme.md | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/readme.md b/readme.md index 1100754..377ffb5 100644 --- a/readme.md +++ b/readme.md @@ -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)