mirror of
https://github.com/leafOfTree/vim-vue-plugin.git
synced 2025-12-07 21:24:50 +08:00
3c75a829d54eefdf1b3bc1099ffdb3b8a7e50ed9
vim-vue-plugin
Vim syntax and indent plugin for .vue and .wpy files. Mainly inspired by mxw/vim-jsx.
Install
-
Use VundleVim
Plugin 'leafOfTree/vim-vue-plugin' -
Or manual: download
vim-vue-pluginand drop it inVim/vimfiles.
Plugin works if filetype is set to javascript.vue. Please stay up to date. Any issue or pull request is welcome.
How it works
Since .vue is a combination of CSS, HTML and JavaScript, so is vim-vue-plugin. (Like XML and JavaScript for .jsx).
Configuration
Set global variable to 1 to enable or 0 to disable.
g:vim_vue_plugin_has_init_indent: initially indent one tab inside style/script tags. (default: 0 for .vue and 1 for .wpy)
let g:vim_vue_plugin_has_init_indent = 1
g:vim_vue_plugin_debug: echo debug message in messages list. Useful to debug if indent errors occur. (default: 0)
let g:vim_vue_plugin_debug = 1
Screenshot
Acknowledgments & Refs
Languages
Vim Script
100%
