tpope/vim-vinegar — pull request #28 by jeetsukumaran (2014-04-20 20:04:11+00:00)
Title: Option to cancel netrw/vinegar without losing split

Sometimes, I cancel the netrw session by hitting '`ESC`'. That is, I invoke `netrw` (hitting '-' with the Vinegar wrapper), and then exit without selecting a file. If my Vim session has splits, this action results in the active split being lost. For example, if the vim screen is split into two windows, by default hitting '-' and then '`ESC`' results in only a single window remaining (the window that was *not* the active window). I find this behavior a little disconcerting. To address this, I added the option of replacing the previous buffer in the split before deleting the netrw buffer.