aboutsummaryrefslogtreecommitdiff
path: root/nvim
diff options
context:
space:
mode:
Diffstat (limited to 'nvim')
-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