aboutsummaryrefslogtreecommitdiff
path: root/nvim/vimscript
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2024-04-29 11:32:09 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2024-04-29 11:32:09 +0200
commit80a7d4033058877a1e0d3294a73e0adc2e7f96b1 (patch)
tree424819c4b31c053b6e6c6c9b00977a894cdbb2df /nvim/vimscript
parent46bad0dba649d79e1e8e188076eef63f00d4ea7a (diff)
downloaddotfiles-80a7d4033058877a1e0d3294a73e0adc2e7f96b1.tar.gz
neovim fix stuck buffers
Diffstat (limited to 'nvim/vimscript')
-rw-r--r--nvim/vimscript/main.vim7
1 files changed, 5 insertions, 2 deletions
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 <silent> gc :tabclose<CR>
-nmap <silent> gn :tabnew<CR>:e .<CR>
+nmap <silent> gc :bd<CR>
+nmap <silent> gn :$tabnew +edit\ .<CR>
+
+" fix for stuck No Name buffers after file open (neovim #17841)
+set nohidden