From 53237b5cb80ebc48acb35da82dcc7222b6199ea5 Mon Sep 17 00:00:00 2001 From: Byron Torres Date: Wed, 24 May 2023 15:14:56 +0100 Subject: wipe unused terminal buffers --- plugin/haredoc.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugin/haredoc.vim') diff --git a/plugin/haredoc.vim b/plugin/haredoc.vim index 73a4dac..e103181 100644 --- a/plugin/haredoc.vim +++ b/plugin/haredoc.vim @@ -42,6 +42,7 @@ function Haredoc(symbol) \ ], \ #{hidden: 1, term_finish: 'close'}, \ ) + call setbufvar(buf, "&bufhidden", 'wipe') let minheight = 1 + system( \ "haredoc -Ftty '"..symbol.."' 2>&1 | wc -l" \ ) @@ -63,7 +64,7 @@ function Haredoc(symbol) \ "haredoc -Ftty '"..symbol.."' | less -RKX", \ ], \ ) - set nonumber filetype=hare + set nonumber filetype=hare bufhidden=wipe nnoremap q :close nnoremap u nnoremap d -- cgit v1.2.3