Friday, July 13, 2018

Incorrect handling of netrw window on session restore

Started learning vim just about month ago and now trying to have netrw file-browser window loaded with the rest of the session but not getting it back when the session is sourced. What I get is some real strange behavior depending on what window/tab is active when running :mksession command.

STEPS TO REPLICATE:

Start vim
Open netrw file-browser with ':e.'
Open any text file in a separate tab 'tabe .vimrc'
Run ':mksession' command
Exit vim
Load saved session with 'vim -S' or 'vim -S Session.vim'
RESULT: all windows from the session are there except netrw, but it is restored by sourcing the session again from inside vim with ':source Session.vim'.

The other way:

Start vim with a text file loaded like 'vim .vimrc'
Open netrw file-browser with ':vs.'
Run :mksession' command
Exit vim
Load saved session with 'vim -S' or 'vim -S Session.vim'
Run :mksession!' command
Exit vim
Load saved session with 'vim -S' or 'vim -S Session.vim'
RESULT: all windows from the session are loaded but netrw one is empty and no way to fix it.


Can anybody replicate this?


This is Linux Fedora 27
$ vim --version
VIM - Vi IMproved 8.1 (2018 May 17, compiled Jun 22 2018 12:14:41)
Included patches: 1-95
Modified by <bugzilla@redhat.com>
Compiled by <bugzilla@redhat.com>

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment