diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2020-04-29 13:40:26 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2020-04-29 13:40:26 +1200 |
commit | e6f47b8ad0ca76b36a0e5b47f6f3ae27edd29d5c (patch) | |
tree | 83914c40b02b011f1d79a4b59b830a991d0a52a0 /vim/vimrc | |
parent | Merge branch 'hotfix/v8.21.1' (diff) | |
parent | Bump VERSION (diff) | |
download | dotfiles-e6f47b8ad0ca76b36a0e5b47f6f3ae27edd29d5c.tar.gz dotfiles-e6f47b8ad0ca76b36a0e5b47f6f3ae27edd29d5c.zip |
Merge branch 'release/v8.22.0'v8.22.0
* release/v8.22.0:
Refine 'viminfo' option setting and comment
Diffstat (limited to 'vim/vimrc')
-rw-r--r-- | vim/vimrc | 20 |
1 files changed, 8 insertions, 12 deletions
@@ -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 |