On 2020-03-11 21:29, Peng Yu wrote:
> If I vimdiff unnamed pipes, when I change the terminal window size,
> the contents in vim window will disappear. Is this a bug? Is there a
> way to circumvent this problem? Thanks.
Could you detail how you're using these unnamed pipes?
I tried (using a bashism)
$ vimdiff <(seq 10) <(seq 10 | sed 5d)
and then resized the terminal window on the resulting diff and
everything worked fine (vim8.1.2372 in an xterm on FreeBSD),
displaying/highlighting the one deleted line.
Additional details might also be relevant:
- your OS?
- your window-manager (if not Windows/Mac)
- which terminal emulator? (xterm, rxvt, st, ...)
- which shell? (bash, zsh, tcsh, ksh, /bin/sh, ash/dash, fish...)
- which version of vim?
- are you running in a terminal multiplexer (like tmux or GNU screen)?
- are you using some method
- are you launching vim with any plugins or non-default settings?
(does the behavior occur if you disable plugins and startup scripts)
Answers to these questions will help attempt to narrow down or
replicate the issue.
-tim