summaryrefslogtreecommitdiff
path: root/vimrc
diff options
context:
space:
mode:
authorjohannst <stoelp@eit.uni-kl.de>2016-12-03 12:45:34 +0100
committerjohannst <stoelp@eit.uni-kl.de>2016-12-03 12:45:34 +0100
commitd715f84870a5d157ceb89935373dcd1370588ef7 (patch)
tree428414e1558b00792909fb0335cdad1c8419bf17 /vimrc
parent20dd4165c9ee1c1ffe123b93f2a95ee646a9e256 (diff)
downloaddotfiles-d715f84870a5d157ceb89935373dcd1370588ef7.tar.gz
dotfiles-d715f84870a5d157ceb89935373dcd1370588ef7.zip
vimrc introduced VIMHOME variable
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