aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'vim/vimrc')
-rw-r--r--vim/vimrc20
1 files changed, 8 insertions, 12 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 7e8806ce..6ae05ff0 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -138,21 +138,17 @@ command! -bang -bar -complete=dir -nargs=1 CreatePath
" Using a logical but non-default location for viminfo has the nice benefit of
" preventing command and search history from getting clobbered when something
" runs Vim without using this vimrc, because such an instance will safely
-" write its own history to the default viminfo path instead. It also
-" contributes to our aim of having everything related to the Vim runtime
-" process in one dedicated directory tree.
+" write its own history to the default viminfo path instead.
"
-" The normal method of specifying the path to the viminfo file, as applied
-" here, is an addendum of the path to the 'viminfo' option with an ‘n’ prefix.
-" Vim v8.1.716 introduced a nicer way to set this with an option named
-" 'viminfofile', but that’s still too new for us to use just yet.
-"
-" <https://github.com/vim/vim/releases/tag/v8.1.0716>
+" This is the portable way to specify the path to the viminfo file, as an
+" addendum of the path to the 'viminfo' option with an ‘n’ prefix. Vim
+" v8.1.716 introduced a way to set this with an option named 'viminfofile',
+" but I don't see a reason to use that.
"
if xdg#['cache']['home'] !=# '' && path#Create(xdg#['cache']['home'])
- execute 'set viminfo+='.option#Escape(
- \ 'n'.xdg#['cache']['home'].'/viminfo'
- \)
+ execute 'set viminfo+='.option#Escape(
+ \ 'n'.xdg#['cache']['home'].'/viminfo'
+ \)
endif
" Speaking of recorded data in viminfo files, the default Vim limit of a mere