diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2020-04-28 13:12:56 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2020-04-28 13:12:56 +1200 |
commit | f9af5184d90affa87c3202f574832af68d883e05 (patch) | |
tree | e4c8f2cd2418ded67f5befa80d9dc402d871410a /vim/vimrc | |
parent | Merge branch 'release/v8.21.0' into develop (diff) | |
download | dotfiles-f9af5184d90affa87c3202f574832af68d883e05.tar.gz dotfiles-f9af5184d90affa87c3202f574832af68d883e05.zip |
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 |