2018-09-29 10:04:43 +08:00
2018-09-28 18:00:42 +08:00
2018-09-28 18:00:22 +08:00
2018-09-29 10:04:43 +08:00

vim-vue-plugin

Vim plugin for .vue files syntax and indent. Mainly inspired by mxw/vim-jsx.

Install

  • Use VundleVim

      Plugin 'leafOfTree/vim-vue-plugin'
    
  • Or manual: download 'vim-vue-plugin' and drop it in Vim/vimfiles.

Plugin works if filetype is set to javascript.vue.

How it works

Since .vue is a combination of CSS, HTML and JavaScript, so is vim-vue-plugin. (Like XML and JavaScript for .jsx).

Support .wpy files too.

Configuration

Set global variable to 1 to enable or 0 to disable.

g:vim_vue_plugin_has_init_indent: indent one tab inside sytle/template/script tags (default: 0)

let g:vim_vue_plugin_has_init_indent = 1

Screenshot

screenshot

Acknowledgments & Refs

mxw/vim-jsx

Single File Components

Description
Vim syntax and indent plugin for .vue files
Readme 688 KiB
Languages
Vim Script 100%