In classic Vi/Vim when I opened a previously unopened file with ctrlp, NERDTree, etc. and the current file/buffer was unsaved, it would open the new file in a horizontal split.
After switching to Neovim, this functionality worked. Then after installing telescope.nvim this behavior ceased. I uninstalled telescope and the desired behavior began again until here in the last day or so.
Now if I don't to save a file and open a new one, then :q
I get an error about an unsaved buffer. The previous horizontal split behavior was preferable. How do I get this back? I have included a link to my dotfiles which includes my original .vimrc
for vim classic and my lua config for Neovim.
Edit/Update:
A simple .vimrc with
set nocompatible
produces this behavior. However an larger init.vim or init.lua with supress this behavior. I'm confused
init.vim
orinit.lua
to reproduce the problem? It would also help to have a step by step description of the "old" behavior on Vim with again the simplestvimrc
file. I must admit that I don't know how you get the "old" behavior (some screenshot could help too) :-|.:w
Then:edit
another file or ``:Ex` to open netrw and you'll see the unsaved buffer preserved and the new file/netrw opened in a split:set hidden?
is set nonohidden
I can open a new buffer in the main split if the main split buffer is not saved). With a simplevimrc
you suggest the:Explore
command is not available). I'm afraid we need more information about the minimalvimrc
you are using :-|:Sexplore
let you open the new buffer in a new horizontal split. Maybe:Explore
as been replaced by:Sexplore
in your "old" system at least when the current buffer was not saved.