diff options
| author | Byron Torres <b@torresjrjr.com> | 2023-05-24 15:14:56 +0100 |
|---|---|---|
| committer | Byron Torres <b@torresjrjr.com> | 2023-05-24 15:30:15 +0100 |
| commit | 53237b5cb80ebc48acb35da82dcc7222b6199ea5 (patch) | |
| tree | 07d034c9cee4c91c9e6f1c2e14184265b59b22e8 /plugin | |
| parent | fix, don't try use statements in non-file buffers (diff) | |
| download | vim-haredoc-53237b5cb80ebc48acb35da82dcc7222b6199ea5.tar.gz | |
wipe unused terminal buffers
Diffstat (limited to 'plugin')
| -rw-r--r-- | plugin/haredoc.vim | 3 |
1 files changed, 2 insertions, 1 deletions
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 <buffer> q :close<CR> nnoremap <buffer> <nowait> u <C-U> nnoremap <buffer> <nowait> d <C-D> |
