Vim plugin for .vue files syntax and indent. Mainly inspired by mxw/vim-jsx.
.vue
Use VundleVim
Plugin 'leafOfTree/vim-vue-plugin'
Or manual: download 'vim-vue-plugin' and drop it in Vim/vimfiles.
Vim/vimfiles
Plugin works if filetype is set to javascript.vue.
javascript.vue
Since .vue is a combination of CSS, HTML and JavaScript, so is vim-vue-plugin. (Like XML and JavaScript for .jsx).
vim-vue-plugin
.jsx
Support .wpy files too.
.wpy
Set global variable to 1 to enable or 0 to disable.
1
0
g:vim_vue_plugin_has_init_indent: indent one tab inside sytle/template/script tags (default: 0 for .vue and 1 for .wpy)
g:vim_vue_plugin_has_init_indent
sytle/template/script
let g:vim_vue_plugin_has_init_indent = 1
mxw/vim-jsx
Single File Components