From c318432c1a8ea70b7f032d53ce8e650b663d481d Mon Sep 17 00:00:00 2001 From: Marcel Schneider Date: Tue, 18 Apr 2017 10:20:50 +0200 Subject: [PATCH] Update new vue filetype --- vim/ftplugin/javascript.vim | 5 +++++ vim/ftplugin/vue.vim | 1 + vimrc.symlink | 22 ++++++++++++---------- 3 files changed, 18 insertions(+), 10 deletions(-) create mode 120000 vim/ftplugin/vue.vim diff --git a/vim/ftplugin/javascript.vim b/vim/ftplugin/javascript.vim index 63ae49a..d91ec36 100644 --- a/vim/ftplugin/javascript.vim +++ b/vim/ftplugin/javascript.vim @@ -3,6 +3,11 @@ let g:syntastic_javascript_checkers = ['eslint'] let g:syntastic_javascript_eslint_exe = '$(npm bin)/eslint' let g:syntastic_javascript_eslint_args = ['--fix'] +" And also for vue +let g:syntastic_vue_checkers = ['eslint'] +let g:syntastic_vue_eslint_exe = '$(npm bin)/eslint' +let g:syntastic_vue_eslint_args = ['--fix'] + "autocmd bufwritepost *.js silent !standard --fix % set autoread set wildignore+=node_modules diff --git a/vim/ftplugin/vue.vim b/vim/ftplugin/vue.vim new file mode 120000 index 0000000..fa97a58 --- /dev/null +++ b/vim/ftplugin/vue.vim @@ -0,0 +1 @@ +javascript.vim \ No newline at end of file diff --git a/vimrc.symlink b/vimrc.symlink index 6551af9..17b6273 100644 --- a/vimrc.symlink +++ b/vimrc.symlink @@ -36,21 +36,23 @@ Plug 'surround.vim' Plug 'tpope/vim-repeat' Plug 'vim-syntastic/syntastic' Plug 'altercation/vim-colors-solarized' +Plug 'godlygeek/tabular' " Align text on symbols " html / templates -Plug 'mattn/emmet-vim', { 'for': ['html', 'php', 'gohtmltmpl', 'vue.html.javascript.css'] } " emmet support for vim - easily create markdup wth CSS-like syntax -Plug 'gregsexton/MatchTag', { 'for': ['html', 'php', 'gohtmltmpl', 'vue.html.javascript.css'] } " match tags in html, similar to paren support -Plug 'othree/html5.vim', { 'for': ['html', 'php', 'gohtmltmpl', 'vue.html.javascript.css'] } " html5 support +Plug 'mattn/emmet-vim', { 'for': ['html', 'php', 'gohtmltmpl', 'vue'] } " emmet support for vim - easily create markdup wth CSS-like syntax +Plug 'gregsexton/MatchTag', { 'for': ['html', 'php', 'gohtmltmpl', 'vue'] } " match tags in html, similar to paren support +Plug 'othree/html5.vim', { 'for': ['html', 'php', 'gohtmltmpl', 'vue'] } " html5 support " JavaScript Plug 'gavocanov/vim-js-indent', { 'for': [ 'javascript' ]} " JavaScript indent support -Plug 'moll/vim-node', { 'for': [ 'javascript', 'vue.html.javascript.css' ]} " node support -Plug 'othree/yajs.vim', { 'for': [ 'javascript', 'vue.html.javascript.css' ]} " JavaScript syntax plugin -Plug 'othree/es.next.syntax.vim', { 'for': [ 'javascript', 'vue.html.javascript.css' ]} " ES6 and beyond syntax -Plug 'ternjs/tern_for_vim', { 'for':[ 'javascript', 'vue.html.javascript.css' ], 'do': 'npm install' } " Ternjs for vim -Plug 'https://github.com/othree/jspc.vim', { 'for': [ 'javascript', 'vue.html.javascript.css' ]} " Function parameter completion -Plug 'heavenshell/vim-jsdoc', { 'for': [ 'javascript', 'vue.html.javascript.css' ]} " Generate JSDoc comments -Plug 'posva/vim-vue', { 'for': [ 'javascript', 'html', 'vue.html.javascript.css' ] } " vue.js integration +Plug 'moll/vim-node', { 'for': [ 'javascript', 'vue' ]} " node support +Plug 'othree/yajs.vim', { 'for': [ 'javascript', 'vue' ]} " JavaScript syntax plugin +Plug 'othree/es.next.syntax.vim', { 'for': [ 'javascript', 'vue' ]} " ES6 and beyond syntax +Plug 'ternjs/tern_for_vim', { 'for':[ 'javascript', 'vue' ], 'do': 'npm install' } " Ternjs for vim +Plug 'https://github.com/othree/jspc.vim', { 'for': [ 'javascript', 'vue' ]} " Function parameter completion +Plug 'heavenshell/vim-jsdoc', { 'for': [ 'javascript', 'vue' ]} " Generate JSDoc comments +Plug 'posva/vim-vue', { 'for': [ 'javascript', 'html', 'vue' ] } " vue.js integration +"Plug 'posva/vim-vue' " Go Plug 'fatih/vim-go', { 'for': [ 'go', 'html', 'gohtmltmpl' ] } " go support