aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-09 15:56:10 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-09 16:17:33 +1200
commit7dfe59d3f1b36fc3cd46733d80533e2660eaa7ce (patch)
tree3bbd87a9da369e5854aff860f388d0eeb6978993
parentCheck value of MYVIM before hooking into subfile (diff)
downloaddotfiles-7dfe59d3f1b36fc3cd46733d80533e2660eaa7ce.tar.gz
dotfiles-7dfe59d3f1b36fc3cd46733d80533e2660eaa7ce.zip
Amend comment on viminfo file
-rw-r--r--vim/vimrc15
1 files changed, 8 insertions, 7 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 0daff902..fb5fe383 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -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