aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-10 14:48:02 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-10 14:48:02 +1200
commit226a0d71bb547cc399e00e971789de9b0aceb9f3 (patch)
tree2c1efcc13a2214316362f4ba7e9e2c642d95ec2f /vim
parentCorrect login around ftplugin/make.vim mappings (diff)
downloaddotfiles-226a0d71bb547cc399e00e971789de9b0aceb9f3.tar.gz
dotfiles-226a0d71bb547cc399e00e971789de9b0aceb9f3.zip
Add 'sessionoptions' settings
This disables saving global and local options and mappings in the sessions. This is more trouble than it's worth for me, because sessions don't include buffer-local variables, which means that in addition to restoring the state of options and mappings, plugins and filetype plugins are reloaded in the absence of b:loaded_* guards.
Diffstat (limited to 'vim')
-rw-r--r--vim/vimrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 73b71646..d1b47b0b 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -141,6 +141,12 @@ if has('linebreak')
endif
endif
+" Don't store any options or mappings in sessions
+if has('mksession')
+ set sessionoptions-=localoptions
+ set sessionoptions-=options
+endif
+
" Let me move beyond buffer text in visual block mode
if has('virtualedit')
set virtualedit+=block