From 13dc4de3fc6e91c91ab92711ad7b40c2770aafcb Mon Sep 17 00:00:00 2001 From: Byron Torres Date: Tue, 23 May 2023 09:04:36 +0000 Subject: fix less invocation and terminal output --- plugin/haredoc.vim | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'plugin/haredoc.vim') diff --git a/plugin/haredoc.vim b/plugin/haredoc.vim index d7ff721..33a6eff 100644 --- 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 q :close nnoremap u -- cgit v1.2.3