summaryrefslogtreecommitdiffstats
path: root/vim/vimrc
diff options
context:
space:
mode:
authoryushyin <yushyin@saga>2015-09-05 02:52:22 +0200
committeryushyin <yushyin@saga>2015-09-05 02:58:34 +0200
commitcf8590b8ef7a82a4477b18d4565c915f213937e4 (patch)
tree42914cdff9db11d0ddfaf55532d818c63525e80f /vim/vimrc
parent6480a7896ce6c974b4415ffd3f14f681632108f7 (diff)
downloaddotfiles-cf8590b8ef7a82a4477b18d4565c915f213937e4.tar.gz
dotfiles-cf8590b8ef7a82a4477b18d4565c915f213937e4.tar.xz
Vim: Set several neobundle hooks for plugins
Diffstat (limited to 'vim/vimrc')
-rw-r--r--vim/vimrc18
1 files changed, 8 insertions, 10 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 57eb988..70ad18d 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -20,14 +20,15 @@ let s:bundle_dir = $XDG_DATA_HOME . '/vim/bundle'
let s:neobundle_dir = s:bundle_dir . '/neobundle.vim'
let s:neobundle_repo = 'https://github.com/Shougo/neobundle.vim'
let s:neobundle_toml = $XDG_CONFIG_HOME . '/vim/neobundle.toml'
-let s:neobundle_plugrc = $XDG_CONFIG_HOME . '/vim/plugrc'
+let s:plugrc = $XDG_CONFIG_HOME . '/vim/plugrc'
let g:neobundle#cache_file = $XDG_CACHE_HOME . '/vim/neobundlecache'
let &runtimepath.=','.s:neobundle_dir
+
try
call neobundle#begin(s:bundle_dir)
-catch /E117/ " neobundle not installed
+catch /E117:/ " neobundle not installed
execute "!mkdir -p " . s:neobundle_dir
- execute "!git clone " s:neobundle_repo . " " . s:neobundle_dir
+ execute "!git clone " . s:neobundle_repo . " " . s:neobundle_dir
call neobundle#begin(s:bundle_dir)
call neobundle#load_toml(s:neobundle_toml, {})
NeoBundleInstall
@@ -50,11 +51,12 @@ if neobundle#tap('unite.vim')
nnoremap <leader>r :<C-u>UniteResume
\ -no-start-insert
\ -force-redraw<CR>
- let neobundle#hooks.on_source = s:neobundle_plugrc . '/unite.rc.vim'
+ let neobundle#hooks.on_source = s:plugrc . '/unite.rc.vim'
call neobundle#untap()
endif
if neobundle#tap('vimfiler.vim')
- let g:vimfiler_as_default_explorer = 1
+ let neobundle#hooks.on_source = s:plugrc . '/vimfiler.rc.vim'
+ call neobundle#untap()
endif
if neobundle#tap('ultisnips')
let g:UltiSnipsForwardTrigger = "<c-,>"
@@ -62,11 +64,7 @@ if neobundle#tap('ultisnips')
call neobundle#untap()
endif
if neobundle#tap('clang_complete')
- let g:clang_auto_select = 1
- let g:clang_snippets = 1
- let g:clang_snippets_engine = 'ultisnips'
- let g:clang_complete_macros = 1
- let g:clang_complete_patterns = 1
+ let neobundle#hooks.on_source = s:plugrc . '/clang_complete.rc.vim'
call neobundle#untap()
endif
if neobundle#tap('syntastic')