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

Quickfix window isn't restored properly #13

Closed Peeja closed 10 years ago

Peeja commented 10 years ago

Much like #5 (NERDTree windows), the Quickfix window becomes a blank when the session is restored. That is, not just the empty quickfix list, but an ordinary empty buffer.

Not a huge issue, but it would be nice to restore it as a quickfix window. For instance, I have <Leader>q mapped to :cclose, and it would be nice if that still worked after loading my session.

tpope commented 10 years ago

This has been irking me a bit too. Manipulating a session file looks hard, but it just occured to me we could manipulate the session beforehand instead. I've added this to my vimrc:

autocmd VimLeavePre * cclose | lclose

Try it too, let me know what issues you have. I could maybe add it to obsession.vim proper.

Peeja commented 10 years ago

That helps, but it only hits the current tab. I guess we could :tabdo? It's gonna get messy, though.

Maybe this is ultimately a Vim bug.

tpope commented 10 years ago

Yeah, a Vim limitation for sure. I'm adding tabdo to my autocommand to see what happens. I don't expect to solve it but maybe we can find an acceptable level of mitigation.

tpope commented 10 years ago

Duh.

Peeja commented 10 years ago

Huzzah! :beers: