From a178bc022ca94e5ed5e314c91647a26e95e8f3a6 Mon Sep 17 00:00:00 2001 From: Jie Feng Date: Sun, 12 Mar 2017 03:04:40 +0800 Subject: [PATCH] removed unuseful plugins and added some js plugins --- Rakefile | 10 ++++++++++ vim/settings/ctrlp.vim | 5 +++++ vim/settings/js.vim | 4 ++++ vim/vundles/js.vundle | 4 ++++ vim/vundles/languages.vundle | 1 - vim/vundles/textobjects.vundle | 1 - vim/vundles/vim-improvements.vundle | 1 - 7 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 vim/settings/js.vim create mode 100644 vim/vundles/js.vundle diff --git a/Rakefile b/Rakefile index 040db5a..e7032ad 100644 --- a/Rakefile +++ b/Rakefile @@ -54,6 +54,16 @@ task :update do #not to clobber zsh files end +task :sync do + vundle_path = File.join('vim','bundle', 'vundle') + unless File.exists?(vundle_path) + run %{ + cd $HOME/.yadr + git clone https://github.com/gmarik/vundle.git #{vundle_path} + } + end +end + task :submodule_init do unless ENV["SKIP_SUBMODULES"] run %{ git submodule update --init --recursive } diff --git a/vim/settings/ctrlp.vim b/vim/settings/ctrlp.vim index 04e4de8..6642a09 100644 --- a/vim/settings/ctrlp.vim +++ b/vim/settings/ctrlp.vim @@ -18,6 +18,11 @@ endif " controller let g:ctrlp_by_filename = 1 +let g:ctrlp_working_path_mode = 'ra' + +" show even .ssh/config file +let g:ctrlp_show_hidden = 1 + " Don't jump to already open window. This is annoying if you are maintaining " several Tab workspaces and want to open two windows into the same file. let g:ctrlp_switch_buffer = 0 diff --git a/vim/settings/js.vim b/vim/settings/js.vim new file mode 100644 index 0000000..2185a6d --- /dev/null +++ b/vim/settings/js.vim @@ -0,0 +1,4 @@ +let javascript_enable_domhtmlcss = 0 +let javascript_ignore_javaScriptdoc = 0 +let g:javascript_conceal=0 +let b:javascript_fold=1 diff --git a/vim/vundles/js.vundle b/vim/vundles/js.vundle new file mode 100644 index 0000000..a871911 --- /dev/null +++ b/vim/vundles/js.vundle @@ -0,0 +1,4 @@ +Bundle 'moll/vim-node' +Bundle 'Shutnik/jshint2.vim' +Bundle 'pangloss/vim-javascript' +Bundle 'mxw/vim-jsx' diff --git a/vim/vundles/languages.vundle b/vim/vundles/languages.vundle index bd059b5..e2d574b 100644 --- a/vim/vundles/languages.vundle +++ b/vim/vundles/languages.vundle @@ -3,7 +3,6 @@ Bundle 'garbas/vim-snipmate.git' Bundle 'honza/vim-snippets' Bundle 'scrooloose/syntastic.git' Bundle 'skwp/vim-html-escape' -Bundle 'mxw/vim-jsx' Bundle 'ternjs/tern_for_vim' Bundle 'jparise/vim-graphql' Bundle 'plasticboy/vim-markdown' diff --git a/vim/vundles/textobjects.vundle b/vim/vundles/textobjects.vundle index 749bf1b..0c22f70 100644 --- a/vim/vundles/textobjects.vundle +++ b/vim/vundles/textobjects.vundle @@ -1,7 +1,6 @@ " These bundles introduce new textobjects into vim, " For example the Ruby one introduces the 'r' text object " such that 'var' gives you Visual Around Ruby -Bundle "austintaylor/vim-indentobject" Bundle "bootleq/vim-textobj-rubysymbol" Bundle "coderifous/textobj-word-column.vim" Bundle "kana/vim-textobj-datetime" diff --git a/vim/vundles/vim-improvements.vundle b/vim/vundles/vim-improvements.vundle index c9a1c8e..85e7f60 100644 --- a/vim/vundles/vim-improvements.vundle +++ b/vim/vundles/vim-improvements.vundle @@ -22,7 +22,6 @@ Bundle "tpope/vim-repeat.git" Bundle "tpope/vim-surround.git" Bundle "tpope/vim-unimpaired" Bundle "vim-scripts/AnsiEsc.vim.git" -Bundle "vim-scripts/AutoTag.git" Bundle "vim-scripts/lastpos.vim" Bundle "vim-scripts/sudo.vim" Bundle "goldfeld/ctrlr.vim"