Compare commits

..

2 commits

2 changed files with 13 additions and 3 deletions

View file

@ -0,0 +1,13 @@
vim.api.nvim_create_user_command("BHD", function()
vim.bo.bufhidden = "delete"
end, {})
vim.g.ephemeral_buffers = false
vim.api.nvim_create_autocmd("BufAdd", {
callback = function(args)
if vim.g.ephemeral_buffers then
vim.bo[args.buf].bufhidden = "delete"
end
end
})

3
vimrc
View file

@ -1,6 +1,3 @@
" vim: set bufhidden=delete noexpandtab tabstop=3 :miv "
"!!! makes use of marker '
" Set up the runtime path
set runtimepath=$VIMRUNTIME,$HOME/.config/nvim,$HOME/.vim
let &rtp=&rtp.','.expand('<sfile>:p:h').'/vim'