Tuesday, April 13, 2021

Re: How to use vim to open stdin and not to reset itself when switching between terminals

On Mo, 12 Apr 2021, Peng Yu wrote:

> Hi,
>
> When I use the following command to open something from stdin, it will
> reset the content on the screen when I switch between terminals. Is
> there a way to keep the content persistent while I switch between
> terminals? Thanks.
>
> seq 10 | { vim /dev/fd/$fd1 </dev/tty; } {fd1}<&0

Not sure what you mean with
"reset the content on the screen when I switch between terminals".

But you may find :h xterm-screens useful. Or perhaps a terminal
multiplexer like screen or tmux may help.

Just giving some hints.
Christian
--
Jede Aussage, die Sie hier lesen, kann gegen Sie verwendet werden!

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20210413115110.GE2222154%40256bit.org.

No comments: