Compare commits
2 commits
b6f22a465b
...
5d10b4ecec
Author | SHA1 | Date | |
---|---|---|---|
5d10b4ecec | |||
c703fb7579 |
2 changed files with 13 additions and 3 deletions
13
vim/plugin/bufhiddendelete.lua
Normal file
13
vim/plugin/bufhiddendelete.lua
Normal 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
3
vimrc
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue