aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2020-04-23 00:53:06 +1200
committerTom Ryder <tom@sanctum.geek.nz>2020-04-23 00:53:06 +1200
commit4b673639cf08342fe0e18affb0bc31cdcc376beb (patch)
tree709843d479dee287737a6ea403eecdde72936ada /vim/vimrc
parentMerge branch 'release/v8.17.0' (diff)
parentUpdate PGP key (diff)
downloaddotfiles-4b673639cf08342fe0e18affb0bc31cdcc376beb.tar.gz
dotfiles-4b673639cf08342fe0e18affb0bc31cdcc376beb.zip
Merge branch 'release/v8.18.0'
* release/v8.18.0: Update PGP key Remove creation of ~/.vim/cache/spell Add setting for 'viewdir' option Add manual page for phpcsff(1df) Use XDG base directories for shell keep() funcs Use XDG base directories for .dotfiles.conf Remove gms Mutt binding Add map to reload ~/.muttrc
Diffstat (limited to 'vim/vimrc')
-rw-r--r--vim/vimrc11
1 files changed, 11 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index d0525c30..adbc9f05 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -242,6 +242,17 @@ if has#('persistent_undo')
call path#Create($MYVIM.'/undo')
endif
+" Set up a directory for files generated by :mkview. To date, I think I have
+" used this twice in my life, but may as well be consistent with the other
+" directories of this type. This isn't a comma-separated list like the others
+" ('backupdir', 'directory', 'spell', 'undodir')
+"
+if has#('mksession')
+ execute 'set viewdir='
+ \.option#Escape(option#item#Escape($MYVIM.'/view'))
+ call path#Create($MYVIM.'/view')
+endif
+
" Now that we have a bit more confidence in our runtime environment, set up
" all of the filetype detection, plugin, and indent hooks.
"