An extension of Quramy/tsuquyomi to integrate Vim with Vue.js Single File Components.
This allows to open a .vue
file as a TypeScript source file.
- Install Quramy/tsuquyomi into your vim.
- (Optional) Install posva/vim-vue into your vim.
- Install
typescript@^2.2.1
into your project. - Install vue-ts-plugin into your project and configure
tsconfig.json
.
Plugin 'Quramy/tsuquyomi-vue'
cd ~/.vim/bundle
git clone https://github.com/Quramy/tsuquyomi-vue.git
NeoBundle 'Quramy/tsuquyomi-vue'
and :NeoBundleInstall
.
- .vimrc
" .vimrc
NeoBundle 'posva/vim-vue'
NeoBundle 'Quramy/tsuquyomi'
NeoBundle 'Quramy/tsuquyomi-vue'
autocmd BufNewFile,BufRead *.vue set filetype=vue
- tsconfig.json
{
"compilerOptions": {
"module": "es2015",
"target": "es5",
"allowSyntheticDefaultImports": true,
"moduleResolution": "node",
"plugins": [
{ "name": "vue-ts-plugin" }
]
}
}