vim-haredoc

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

commit 13dc4de3fc6e91c91ab92711ad7b40c2770aafcb
parent b8add673fe8a32c9e34dba82ac31523c2464805f
Author: Byron Torres <b@torresjrjr.com>
Date:   Tue, 23 May 2023 09:04:36 +0000

fix less invocation and terminal output

Diffstat:
Mplugin/haredoc.vim | 9+++++++--
1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/plugin/haredoc.vim b/plugin/haredoc.vim @@ -21,7 +21,7 @@ function Haredoc(symbol) let buf = term_start( \ [ \ 'sh', '-c', - \ "haredoc -Ftty '"..symbol.."' 2>&1 | less -RK", + \ "haredoc -Ftty '"..symbol.."' | less -RKX", \ ], \ #{hidden: 1, term_finish: 'close'}, \ ) @@ -37,7 +37,12 @@ function Haredoc(symbol) \ }, \ ) elseif has('terminal') - execute 'terminal ++noclose haredoc '..symbol + call term_start( + \ [ + \ 'sh', '-c', + \ "haredoc -Ftty '"..symbol.."' | less -RKX", + \ ], + \ ) set nonumber filetype=hare nnoremap <buffer> q :close<CR> nnoremap <buffer> <nowait> u <C-U>