tpope / vim-obsession

obsession.vim: continuously updated session files
http://www.vim.org/scripts/script.php?script_id=4472
1.76k stars 70 forks source link

Vim help window is not restored as READ-ONLY #29

Closed xc1427 closed 7 years ago

xc1427 commented 7 years ago

As title says.

I also tried to disable almost all other plugins, and it gives the same result.

xc1427 commented 7 years ago

It seems that I found the explanation for this problem.

When options is excluded from sessionoptions (set sessionoptions-=options), setlocal readonly will not be set for help window. So the help window will be displayed as normal mode.

I think the simple workaround is to do set sessionoptions-=help. To restore help window is actually not much of interest.