When I save my vim session using :mksession mysavedsession, it saves everthing that is relevant to me except for the swapped buffer opened in each of my vim windows brought to view by Ctrl-6.
Any easy solutions to this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That’s
<C-^>, not<C-6>.I don’t think that there’s such a thing as a “
<C-^>state”:<C-^>is used to edit the previously edited file but it doesn’t have a “hard” value. When you are restoring a session you haven’t edited any previous file so it’s likely that<C-^>doesn’t work. Just like there’s no “previous file” if you just started Vim.A quick look at
:help mksession,:help mkview,:help sessionoptionsand:help viewoptionsdoesn’t seem to indicate any workaround.