From 0582a9485a86575cb8c7a05cde2d85e9adec1778 Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Thu, 28 Aug 2014 15:17:21 -0700 Subject: [PATCH] Some updates to plugins --- vim-sync-append.sh | 4 ++++ vimrc | 44 ++++++++++++++++++++++++++++++-------------- 2 files changed, 34 insertions(+), 14 deletions(-) diff --git a/vim-sync-append.sh b/vim-sync-append.sh index 3e0ccdc..2ce39ab 100755 --- a/vim-sync-append.sh +++ b/vim-sync-append.sh @@ -70,6 +70,10 @@ fi echo "Install all bundles" vim +BundleInstall! +qall +echo "Compile vimproc" +cd ~/.vim/bundle/vimproc.vim && make +cd - + # Compile CommandT if possible # See if ruby is installed if command -v ruby >/dev/null 2>&1; then diff --git a/vimrc b/vimrc index 196c265..89b4c35 100644 --- a/vimrc +++ b/vimrc @@ -11,7 +11,8 @@ Plugin 'gmarik/vundle' " Rest of my bundles " -- File Nav -- -Plugin 'scrooloose/nerdtree' " File tree navigation +"Plugin 'scrooloose/nerdtree' " File tree navigation +Plugin 'tpope/vim-vinegar' " Simple file navigation Plugin 'a.vim' " Switch to alternate file Plugin 'file-line' " Allow opening to a line from file name using : Plugin 'tpope/vim-fugitive' " Git integration @@ -25,7 +26,7 @@ end if use_command_t == 1 && has('ruby') Plugin 'wincent/Command-T' else - Plugin 'kien/ctrlp.vim' + Plugin 'ctrlpvim/ctrlp.vim' end " -- Buffer Nav -- @@ -34,8 +35,9 @@ Plugin 'sandeepcr529/Buffet.vim' " Quick buffer switching " -- Nav in file -- Plugin 'majutsushi/tagbar' " Ctags file parsing Plugin 'scrooloose/syntastic' " Syntax checking -Plugin 'rking/ag.vim' " Project searching Plugin 'ViViDboarder/QFixToggle' " Easy Toggle of QuickFix window +" TODO: detect if Ag or Ack is installed +Plugin 'rking/ag.vim' " Project searching "Plugin 'mileszs/ack.vim' " Project Searching " -- Text Manipulation -- @@ -51,14 +53,13 @@ Plugin 'bling/vim-airline' " Custom Status Line "If using a patched font: https://github.com/Lokaltog/vim-powerline/wiki/Patched-fonts "let g:airline_powerline_fonts = 1 -" -- Sytem -- -" Allow async make -Plugin 'tpope/vim-dispatch' -Plugin 'Shougo/neocomplcache.vim' -Plugin 'tpope/vim-rsi' -Plugin 'tpope/vim-repeat' +" -- System -- +Plugin 'tpope/vim-dispatch' " Allow async make +Plugin 'Shougo/neocomplcache.vim' " Autocomplete +Plugin 'tpope/vim-rsi' " emacs bindinds in insert +Plugin 'tpope/vim-repeat' " Repeat mapped commands with . " Needs to be compiled -Plugin 'Shougo/vimproc.vim' +Plugin 'Shougo/vimproc.vim' " Async for plugins " -- Themes -- Plugin 'vividchalk.vim' @@ -303,9 +304,9 @@ nnoremap :Bufferlist nnoremap bl :Bufferlist " NERDTree -nnoremap :NERDTreeToggle -nnoremap nn :NERDTreeToggle -nnoremap nf :NERDTreeFind +" nnoremap :NERDTreeToggle +"nnoremap nn :NERDTreeToggle +"nnoremap nf :NERDTreeFind " TComment nnoremap // :TComment @@ -357,7 +358,15 @@ else " Allow ctrl p to open over the initial nerdtree window "let g:ctrlp_dont_split = 'NERD_tree_2' - let g:ctrlp_dont_split = 'NERD' + "let g:ctrlp_dont_split = 'NERD' + let g:ctrlp_dont_split = 'netrw' + + " Support tag jumping + let g:ctrlp_extensions = ['tag', 'buffertag'] + " Support Apex language + let g:ctrlp_buftag_types = { + \ 'apex' : '--language-force=c#', + \ } " Leader Commands nnoremap b :CtrlPBuffer @@ -376,6 +385,13 @@ nnoremap gw :Gwrite " Toggle QuickFix window nnoremap :QFix +" NeoComplCache +let g:neocomplcache_enable_at_startup = 1 +let g:neocomplcache_enable_smart_case = 1 +let g:neocomplcache_max_list = 10 +"let g:neocomplcache_enable_camel_case_completion = 1 +let g:neocomplcache_enable_fuzzy_completion = 1 + nmap a :Ag nmap i* :Ag-i'\b\b' nmap * :Ag'\b\b'