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.vimorinit.luato reproduce the problem? It would also help to have a step by step description of the "old" behavior on Vim with again the simplestvimrcfile. I must admit that I don't know how you get the "old" behavior (some screenshot could help too) :-|. – Vivian De Smedt Mar 13 '24 at 08:38:wThen:editanother file or ``:Ex` to open netrw and you'll see the unsaved buffer preserved and the new file/netrw opened in a split – webermaster Mar 13 '24 at 13:00:set hidden?is set nonohiddenI can open a new buffer in the main split if the main split buffer is not saved). With a simplevimrcyou suggest the:Explorecommand is not available). I'm afraid we need more information about the minimalvimrcyou are using :-| – Vivian De Smedt Mar 13 '24 at 13:11:Sexplorelet you open the new buffer in a new horizontal split. Maybe:Exploreas been replaced by:Sexplorein your "old" system at least when the current buffer was not saved. – Vivian De Smedt Mar 13 '24 at 13:15:splitis replacing:edit. – Vivian De Smedt Mar 13 '24 at 13:26