aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--plugin/haredoc.vim9
1 files changed, 7 insertions, 2 deletions
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 <buffer> q :close<CR>
nnoremap <buffer> <nowait> u <C-U>