Questions tagged [sessions]

For questions about vim's sessions feature, which persist an editing session to disk for recovery later.

8 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
1answer
71 views

NeoVim Save BreakPoints to Session

I am using NeoVim for writing go code, for debugging I am using vimspector The debugging works well, however everytime I exit and restart nvim the breakpoints are lost. I tried saving the session ...
2
votes
1answer
131 views

Session - start with buffer 1

Note: Possible fixed bug. See comments. A somewhat minor nuisance, but as the pedantic for these things :P When saving and opening a Session file the Session.vim file does: badd +1 file1 badd +1 ...
2
votes
0answers
48 views

:mksession session file includes nonprintable characters

I have been having some problems using UltiSnips with vim. It seems that :mksession is adding a bunch of nonprintable characters to my session file(s). When this is sourced to restore my session, ...
1
vote
0answers
35 views

Save :Man window in session

TL;DR: I want to persist :Man windows in sessions I am obsessed with sessions, and use tpope's vim-obsession for managing them. Coupled with a scripted tmux, sessions make for a perfect "quit, go ...
0
votes
1answer
21 views

Prevent vim from exiting in case of error during autocommand

I'd like to save my session before vim exits. Here's what I have so far: function SaveSession() let l:new_session = trim(inputdialog("Enter new session name: ", v:this_session, -1)) ...
0
votes
0answers
25 views

How do I load a session and also open a new file?

I save my sessions to Session.vim and load them by running vim -S, which opens my layout just the way I want it. It's great! Sometimes I want to edit ./README.md. I could run vim README.md, but then I'...
0
votes
0answers
136 views

How to properly organize persistence of the vim state of all opened buffers?

Before switching to vim years ago I was using Sublime Text and it perfectly handled situations when I just close it and open again. Nothing is lost and at the place where I left it off. So I'm aiming ...
0
votes
1answer
253 views

In Vim, how to tag/enrich buffers with custom information (that persist naturally)

Gday, I am trying to persist some state about my buffers, specifically terminal buffers, over vim sessions with :mksession through the plugin 'vim-session' by xolox. The goal is to assign labels to ...