diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-09 15:56:10 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-09 16:17:33 +1200 |
commit | 7dfe59d3f1b36fc3cd46733d80533e2660eaa7ce (patch) | |
tree | 3bbd87a9da369e5854aff860f388d0eeb6978993 | |
parent | Check value of MYVIM before hooking into subfile (diff) | |
download | dotfiles-7dfe59d3f1b36fc3cd46733d80533e2660eaa7ce.tar.gz dotfiles-7dfe59d3f1b36fc3cd46733d80533e2660eaa7ce.zip |
Amend comment on viminfo file
-rw-r--r-- | vim/vimrc | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -179,13 +179,14 @@ if exists('##SourceCmd') endif " Keep the viminfo file in a cache subdirectory of $MYVIM, creating that -" subdirectory if necessary. -" -" Using this location for viminfo has the nice benefit of preventing history -" from getting clobbered when something runs Vim without using this vimrc, -" because it writes its history to the default viminfo path instead. It also -" means that everything Vim-related in the user's home directory should be -" encapsulated in the one ~/.vim or ~/vimfiles directory. +" subdirectory first if necessary. +" +" Using this 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 it writes its history to the +" default viminfo path instead. It also means that everything Vim-related in +" the user's home directory should be encapsulated in the one ~/.vim or +" ~/vimfiles directory. " " The normal method of specifying the path to the viminfo file used here is an " addendum to the 'viminfo' option, which works OK. Vim v8.1.716 introduced |