Thanks for the fast answers. I reread the :help xterm-screens. As I
understand it, xterm|rxvt has a main and alternate screen. If your terminal
supports it, and you want that, you can switch to the alternate screen for
vim, so after exiting the main one is restored.

My request is different. I want, after exiting, the main screen restored and
vim to behave similar to cat: The previous shell commands are visible, the
[file content visible when exiting vim] is just appended. Benefit: No
anoying tilde lines.

E.g.:
$ vim test.txt
AAAAAAA
BBBBBBB
:q

What I see after exiting vim:
AAAAAAA
BBBBBBB
~
~
...
$                " <- prompt at the bottom after many tilde lines. One ls
and the first lines of the vim output are gone

OR

$ vim test.txt
$               " <- no file content


What I want to see:
$ vim test.txt
AAAAAAA
BBBBBBB
$               " <- prompt right after file content

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to