aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-21 11:00:55 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-21 11:00:55 +1200
commit477830ab8c64ecc6665e1d627159f15b842442df (patch)
treebf98bba3909ab7464d812961b7699e1a3c7f6f5e
parentRevert "Try ternary operator for $MYVIMRUNTIME ... (diff)
downloaddotfiles-477830ab8c64ecc6665e1d627159f15b842442df.tar.gz
dotfiles-477830ab8c64ecc6665e1d627159f15b842442df.zip
Use MYVIM instead of MYVIMRUNTIME
Not all of the files in ~/.vim are necessary runtime files anyway, so the distinction isn't helpful.
-rw-r--r--vim/vimrc14
1 files changed, 7 insertions, 7 deletions
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