[PATCH vim-haredoc] Use :terminal in split window in Neovim
Export this patch
---
Alternative to patch 46177.
plugin/haredoc.vim | 3 +++
1 file changed, 3 insertions(+)
diff --git a/plugin/haredoc.vim b/plugin/haredoc.vim
index 3502184..ae8b4f7 100644
--- a/plugin/haredoc.vim
+++ b/plugin/haredoc.vim
@@ -76,6 +76,9 @@ function Haredoc(symbol)
nnoremap <buffer> q :close<CR>
nnoremap <buffer> <nowait> u <C-U>
nnoremap <buffer> <nowait> d <C-D>
+ elseif has('nvim')
+ split
+ execute 'terminal haredoc '..symbol
else
execute '!haredoc '..symbol
endif
--
2.42.0
Applied to master
commit 67013baf7d5136c8b992d1ae1ff6d957234d8241
Author: Max Schillinger <max@mxsr.de>
Date: Sat Oct 28 16:00:56 2023 +0200
neovim: use :terminal in split window