From 80a7d4033058877a1e0d3294a73e0adc2e7f96b1 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Mon, 29 Apr 2024 11:32:09 +0200 Subject: neovim fix stuck buffers --- nvim/vimscript/main.vim | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'nvim') diff --git a/nvim/vimscript/main.vim b/nvim/vimscript/main.vim index 0d81142..f7bb194 100644 --- a/nvim/vimscript/main.vim +++ b/nvim/vimscript/main.vim @@ -1,5 +1,8 @@ set nu rnu highlight LineNr term=bold cterm=NONE ctermfg=DarkGrey ctermbg=NONE gui=NONE guifg=DarkGrey guibg=NONE -nmap gc :tabclose -nmap gn :tabnew:e . +nmap gc :bd +nmap gn :$tabnew +edit\ . + +" fix for stuck No Name buffers after file open (neovim #17841) +set nohidden -- cgit v1.2.3