I've got a few tabs open with different window setups.
I'd like to open a new blank buffer in the current window, without having any more splits/windows or tabs
Is there any way to do this?
I know I could do something like :n then C-w j then :q but that seems a bit messy.
Or similar with tabs: :tabe gT :q
I'm slightly confused about the relationship between windows and buffers in general - you can have lots of buffers open without being visible which you can clean up using bd but if they aren't visible then they must be saved, because you can't hide them (using :q) without either saving or discarding changes... that seems a little odd.
'hidden'option, which may help with some of the oddness you described in your original question. Using:set hiddenallows you to hide buffers even if they haven't been written to disk. For me, this setting was the tipping point towards mastering buffer navigation, moving away from a mess of splits and tabs. – tommcdo Mar 28 '15 at 00:18:ewith no arguments attempts to reload the file from disk. If you've changed the current file in another editor, this would replace the buffer with what is on disk. Otherwise, if the buffer is modified, you can use:e!to revert to the last saved version. – BallpointBen Jul 30 '18 at 13:50:enew. – dcow Sep 08 '19 at 04:15