summaryrefslogtreecommitdiff
path: root/vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc10
1 files changed, 6 insertions, 4 deletions
diff --git a/vimrc b/vimrc
index 3b16936..25e9f63 100644
--- a/vimrc
+++ b/vimrc
@@ -8,13 +8,15 @@ let mapleader=";"
nnoremap <leader>ev :edit ~/.vimrc<CR>
nnoremap <leader>sv :source ~/.vimrc<CR>
+let $VIMHOME='~/.vim'
+
"{{{ Plugin Management
" to install plugins open vim and run :PluginInstall from within vim OR
" vim +PluginInstall +qall from cmd line
filetype off " necessary for vundle!!!
-set runtimepath+=~/.vim/bundle/Vundle.vim
+set runtimepath+=$VIMHOME/bundle/Vundle.vim
call vundle#begin()
@@ -58,7 +60,7 @@ if exists('s:airline_enable')
endif
if exists('s:tagbar_enable')
- let g:tagbar_ctags_bin='~/.vim/bin/ctags'
+ let g:tagbar_ctags_bin=$VIMHOME . '/bin/ctags'
if !empty(glob(g:tagbar_ctags_bin))
augroup aug:TagbarKeymaps
autocmd!
@@ -70,7 +72,7 @@ if exists('s:tagbar_enable')
endif
if exists('s:ctrlp_enable')
- let g:ctrlp_buftag_ctags_bin='~/.vim/bin/ctags'
+ let g:ctrlp_buftag_ctags_bin=$VIMHOME . '/bin/ctags'
let g:ctrlp_extensions = ['buffertag', 'line', 'changes', 'mixed']
endif
@@ -79,7 +81,7 @@ if exists('s:buftabline_enable')
endif
if exists('s:omnicppcomplete_enable')
- set tags+=~/.vim/tags/cpp_tags
+ set tags+=$VIMHOME/tags/cpp_tags
let OmniCpp_NamespaceSearch = 1
let OmniCpp_GlobalScopeSearch = 1
let OmniCpp_ShowAccess = 1