diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-21 11:00:55 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-21 11:00:55 +1200 |
commit | 477830ab8c64ecc6665e1d627159f15b842442df (patch) | |
tree | bf98bba3909ab7464d812961b7699e1a3c7f6f5e | |
parent | Revert "Try ternary operator for $MYVIMRUNTIME ... (diff) | |
download | dotfiles-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/vimrc | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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 |