aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-25 02:51:12 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-25 02:51:12 +1200
commit55e74da96316ba7450dda07d35b0525f83386cb6 (patch)
tree60fa339bbf6995aa27bb6c10074359fe51e7c55b
parentMerge branch 'release/v4.48.0' into develop (diff)
downloaddotfiles-55e74da96316ba7450dda07d35b0525f83386cb6.tar.gz
dotfiles-55e74da96316ba7450dda07d35b0525f83386cb6.zip
Use plain :set for 'viminfofile'
-rw-r--r--vim/vimrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/vimrc b/vim/vimrc
index aede100c..8a4e16d9 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -182,7 +182,7 @@ endif
" getting clobbered when something runs Vim without using this vimrc
let $VIMINFO = $MYVIM.'/viminfo'
if exists('+viminfofile') " Use new option method if we can (v8.1.716)
- let &viminfofile = $VIMINFO
+ set viminfofile=$VIMINFO
else " Resort to clunkier method with 'viminfo' option flag
execute 'set viminfo+=n'.escape($VIMINFO, '\ ')
endif