From d715f84870a5d157ceb89935373dcd1370588ef7 Mon Sep 17 00:00:00 2001 From: johannst Date: Sat, 3 Dec 2016 12:45:34 +0100 Subject: vimrc introduced VIMHOME variable --- vimrc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'vimrc') diff --git a/vimrc b/vimrc index 3b16936..25e9f63 100644 --- a/vimrc +++ b/vimrc @@ -8,13 +8,15 @@ let mapleader=";" nnoremap ev :edit ~/.vimrc nnoremap sv :source ~/.vimrc +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 -- cgit v1.2.3