I have a Vim Session file I created by doing:
:mksession
Then I quit Vim. I then downloaded a plugin to:
${HOME}/.vim/pack/vendor/start/vim-markdown-folding
and then I fired up Vim with the session file by doing
vim -S Session.vim
Then I attempted to open the help docs for the vim-markdown-folding plugin by doing:
:helptags ALL
:help markdown-folding
Which Vim told me that it didn't exist. So I opened a new terminal tab, and tried it in a different vim session without loading the Session file. The help command worked. So I tried then to :source $MYVIMRC
in the Vim that loaded the Session.vim and it still didn't update the loaded plugins. The only other way I can think of to do this is to delete the Session.vim file and reposition all my open splits and windows, which I DO NOT want to do.
How do I make Vim update the Session.vim file and the list of plugins that should be loaded when editing certain files without deleting the existing Session.vim and losing all those settings?
Why would the Session.vim file detail the plugins loaded or not update them when I tell it to :packadd
or to :mksession!
again or reload my $MYVIMRC
?
set ssop?
Especially, does it includeoptions
?ssop
set anywhere in myvimrc
. I did a recursive grep through the plugins I have, and nothing is in there either.ssop
setting in theSession.vim
file.'ssop'
. If you haven't touched it then it does includeoptions
and then it's no surprise it worked that way. Read:h 'ssop'
and:h 'rtp'
then have a look into your session file, and you probaly will be able to explain what happens yourself.:set sessionoptions?
issessionoptions=blank,buffers,curdir,folds,help,options,tabpages,winsize,terminal