I use netrw
:Lexplore as my file browser and I also use vim sessions. However, whenever I open a session file,
:Lexplore is closed and I have to re-open.
Is there a way to keep netrw
:Lexplore open on session save / restore?
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.Sign up to join this community
As a partial solution: before saving the session, use
:set bl when in the netrw window, thus making it a listed buffer. Your
sessionoptions should also have
buffers as one of its entries. Then, save a session (ie.
:mksession somefilename). Its only a partial solution because the restored window, although the window exists, is filled properly, and netrw works with it, its not named.