From 7cd7e8402b87cc28d730076274e9444cfd299d3f Mon Sep 17 00:00:00 2001 From: Marcel Schneider Date: Sun, 19 Mar 2017 19:08:36 +0100 Subject: [PATCH] Use all html plugins for vue, too --- vim/ftplugin/javascript.vim | 1 + vimrc.symlink | 22 +++++++++++----------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/vim/ftplugin/javascript.vim b/vim/ftplugin/javascript.vim index ec0d71f..f1b5eef 100644 --- a/vim/ftplugin/javascript.vim +++ b/vim/ftplugin/javascript.vim @@ -1,6 +1,7 @@ "let g:syntastic_javascript_checkers = ['standard'] let g:syntastic_javascript_checkers = ['eslint'] let g:syntastic_javascript_eslint_exe = '$(npm bin)/eslint' +let g:syntastic_javascript_eslint_args = ['--fix'] autocmd bufwritepost *.js silent !standard --fix % set autoread diff --git a/vimrc.symlink b/vimrc.symlink index 3ec5a4c..2737d7b 100644 --- a/vimrc.symlink +++ b/vimrc.symlink @@ -38,19 +38,19 @@ Plug 'vim-syntastic/syntastic' Plug 'altercation/vim-colors-solarized' " html / templates -Plug 'mattn/emmet-vim', { 'for': ['html', 'php', 'gohtmltmpl'] } " emmet support for vim - easily create markdup wth CSS-like syntax -Plug 'gregsexton/MatchTag', { 'for': ['html', 'php', 'gohtmltmpl'] } " match tags in html, similar to paren support -Plug 'othree/html5.vim', { 'for': ['html', 'php', 'gohtmltmpl'] } " html5 support +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 " JavaScript -Plug 'gavocanov/vim-js-indent', { 'for': 'javascript' } " JavaScript indent support -Plug 'moll/vim-node', { 'for': 'javascript' } " node support -Plug 'othree/yajs.vim', { 'for': 'javascript' } " JavaScript syntax plugin -Plug 'othree/es.next.syntax.vim', { 'for': 'javascript' } " ES6 and beyond syntax -Plug 'ternjs/tern_for_vim', { 'for': 'javascript', 'do': 'npm install' } " Ternjs for vim -Plug 'https://github.com/othree/jspc.vim', { 'for': 'javascript' } " Function parameter completion -Plug 'heavenshell/vim-jsdoc', { 'for': 'javascript' } " Generate JSDoc comments -Plug 'posva/vim-vue', { 'for': [ 'javascript', 'html' ] } " vue.js integration +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 " Go Plug 'fatih/vim-go', { 'for': [ 'go', 'html', 'gohtmltmpl' ] } " go support