vim-haredoc

[vim] haredoc plugin
git clone https://git.torresjrjr.com/vim-haredoc.git
Log | Files | Refs | README | LICENSE

commit 2d8e6274ec7c9abc131cf258eeadae885e4e54f2
parent 53237b5cb80ebc48acb35da82dcc7222b6199ea5
Author: Byron Torres <b@torresjrjr.com>
Date:   Wed, 24 May 2023 15:15:18 +0100

set '[haredoc] {symbol}' as buffer name

Diffstat:
Mplugin/haredoc.vim | 9++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/plugin/haredoc.vim b/plugin/haredoc.vim @@ -40,7 +40,11 @@ function Haredoc(symbol) \ 'sh', '-c', \ "haredoc -Ftty '"..symbol.."' | less -RKX", \ ], - \ #{hidden: 1, term_finish: 'close'}, + \ #{ + \ term_name: '[haredoc] '..symbol, + \ hidden: 1, + \ term_finish: 'close', + \ }, \ ) call setbufvar(buf, "&bufhidden", 'wipe') let minheight = 1 + system( @@ -63,6 +67,9 @@ function Haredoc(symbol) \ 'sh', '-c', \ "haredoc -Ftty '"..symbol.."' | less -RKX", \ ], + \ #{ + \ term_name: '[haredoc] '..symbol, + \ }, \ ) set nonumber filetype=hare bufhidden=wipe nnoremap <buffer> q :close<CR>