diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-10 14:48:02 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-10 14:48:02 +1200 |
commit | 226a0d71bb547cc399e00e971789de9b0aceb9f3 (patch) | |
tree | 2c1efcc13a2214316362f4ba7e9e2c642d95ec2f /vim/vimrc | |
parent | Correct login around ftplugin/make.vim mappings (diff) | |
download | dotfiles-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/vimrc')
-rw-r--r-- | vim/vimrc | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |