From 477830ab8c64ecc6665e1d627159f15b842442df Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 21 May 2019 11:00:55 +1200 Subject: Use MYVIM instead of MYVIMRUNTIME Not all of the files in ~/.vim are necessary runtime files anyway, so the distinction isn't helpful. --- vim/vimrc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'vim') diff --git a/vim/vimrc b/vim/vimrc index 9950a1b7..16d57dd5 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -5,11 +5,11 @@ runtime system.vim " Set an environment variable for the user runtime directory -if !exists('$MYVIMRUNTIME') +if !exists('$MYVIM') if has('win32') || has('win64') - let $MYVIMRUNTIME = expand('~/vimfiles') + let $MYVIM = expand('~/vimfiles') else - let $MYVIMRUNTIME = expand('~/.vim') + let $MYVIM = expand('~/.vim') endif endif @@ -32,9 +32,9 @@ endif " encoded path in filename (trailing double slash) if supported (v8.1.251) set backup if has('patch-8.1.251') - set backupdir^=$MYVIMRUNTIME/cache/backup// + set backupdir^=$MYVIM/cache/backup// else - set backupdir^=$MYVIMRUNTIME/cache/backup + set backupdir^=$MYVIM/cache/backup endif " Add some *nix paths not to back up @@ -65,7 +65,7 @@ set cpoptions+=J " Try to keep swap files in one system-appropriate directory, including full " encoded path in filename (trailing double slash) -set directory^=$MYVIMRUNTIME/cache/swap// +set directory^=$MYVIM/cache/swap// " Use UTF-8 if we can and $LANG doesn't tell us not to if has('multi_byte') @@ -184,7 +184,7 @@ endif " (v7.2.438), including full encoded path in filename (trailing double slash) if has('persistent_undo') set undofile - set undodir^=$MYVIMRUNTIME/cache/undo// + set undodir^=$MYVIM/cache/undo// endif " Let me move beyond buffer text in visual block mode -- cgit v1.2.3