aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-06 14:40:26 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-06 14:40:26 +1200
commitee4f0c50e9e8a99435607326f14985625b9129f9 (patch)
tree172d74b7326b6526c590fd5be1d26214912c4a97 /vim/vimrc
parentAdjust layout of 'formatoptions' (diff)
downloaddotfiles-ee4f0c50e9e8a99435607326f14985625b9129f9.tar.gz
dotfiles-ee4f0c50e9e8a99435607326f14985625b9129f9.zip
Remove overkill environment variable
Diffstat (limited to 'vim/vimrc')
-rw-r--r--vim/vimrc5
1 files changed, 2 insertions, 3 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 34a83af6..2e9d1f1f 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -173,11 +173,10 @@ endif
" Keep the viminfo file in the home Vim directory, mostly to stop history
" getting clobbered when something runs Vim without using this vimrc
-let $VIMINFO = $MYVIM.'/cache/viminfo'
if exists('+viminfofile') " Use new option method if we can (v8.1.716)
- set viminfofile=$VIMINFO
+ set viminfofile=$MYVIM/cache/viminfo
else " Resort to clunkier method with 'viminfo' option flag
- execute 'set viminfo+=n'.vimrc#EscapeSet($VIMINFO)
+ execute 'set viminfo+=n'.vimrc#EscapeSet($MYVIM.'/cache/viminfo')
endif
" Let me move beyond buffer text in visual block mode