mirror of
https://github.com/posva/vim-vue.git
synced 2025-12-09 02:44:45 +08:00
c122cb8c29a6c491384233d8eb4457c77722fa3e
In #46, the question was where to put this option, and why some other plugins put it in the 'after' directory. Vim-javascript puts it in the 'after' directory because they want to keep the settings in the ftplugin shipped with Vim, and only add the 'suffixesadd' option. Since Vim doesn't ship with a Vue plugin, we can safely put this option in ftplugin.
vim-vue
Vim syntax highlighting for Vue components.
This was initially forked from darthmall/vim-vue. I already have an implementation for this but found his code much cleaner. That's why I created a new version instead of a PR.
Installation
Install with Vundle
Plugin 'posva/vim-vue'
Install with Pathogen
cd ~/.vim/bundle && \
git clone https://github.com/posva/vim-vue.git
Install without a plugin manager (Vim 8)
git clone https://github.com/posva/vim-vue.git ~/.vim/pack/plugins/start
Integration with Syntastic
Currently only eslint is available. Please make sure eslint and
eslint-plugin-vue are installed:
npm i -g eslint eslint-plugin-vue
Contributing
If your language is not getting highlighted open an issue or a PR with the fix.
You only need to add some lines to the syntax/vue.vim file.
FAQ
Where is Jade?
Jade has been renamed to pug.
Therefore you have to replace all your jade occurrences with pug. The new
plugin for pug can be found on the same repository (the name has already been updated).
Languages
Vim Script
88.5%
Makefile
10.7%
Dockerfile
0.8%