From 2bb16ac78e7a8ec9bc485de2096fa86acf683bbe Mon Sep 17 00:00:00 2001 From: Marcel Schneider Date: Thu, 1 Jun 2017 10:51:46 +0200 Subject: [PATCH] Remove javascript syntax due to performance issues --- install.sh | 14 ++++++++++++++ vim/ftplugin/javascript.vim | 1 - vimrc.symlink | 4 ++-- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index bdf9fc0..c1bd3ee 100755 --- a/install.sh +++ b/install.sh @@ -21,3 +21,17 @@ for file in $linkables ; do ln -s $file $target fi done + +# Vim folders +echo -e "\eLinking vim folders" +linkables=$( find vim -mindepth 1 -type d -exec basename {} \; ) +for folder in $linkables ; do + target="$HOME/.vim/$folder" + if [ -e $target ]; then + echo "~${target#$HOME/.vim} already exists... Skipping." + else + echo "Creating symlink for $folder" + ln -s $DOTFILES/vim/$folder $target + fi +done + diff --git a/vim/ftplugin/javascript.vim b/vim/ftplugin/javascript.vim index d91ec36..3805b09 100644 --- a/vim/ftplugin/javascript.vim +++ b/vim/ftplugin/javascript.vim @@ -9,7 +9,6 @@ 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 set tabstop=2 diff --git a/vimrc.symlink b/vimrc.symlink index 819bcfe..d970ba8 100644 --- a/vimrc.symlink +++ b/vimrc.symlink @@ -44,8 +44,8 @@ Plug 'othree/html5.vim', { 'for': ['html', 'php', 'gohtmltmpl', 'vue'] } " html5 " JavaScript Plug 'gavocanov/vim-js-indent', { 'for': [ 'javascript' ]} " JavaScript indent support 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 '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