我剛剛在我的新計算機上安裝了Arch,我無法弄清楚需要將什麼命令添加到.vimrc才能在退出時恢復shell內容(在調用vim之前)。vim在出口處恢復shell
也就是說,我想我的殼看起來像這樣:
# whoami
root
# who
root tty1 2011-12-11 16:42
# vim somefile.txt
#
但相反,它看起來是這樣的:
1 hello
2 how is it going?
~
~
~
~
~
~
~
~
#
我剛剛在我的新計算機上安裝了Arch,我無法弄清楚需要將什麼命令添加到.vimrc才能在退出時恢復shell內容(在調用vim之前)。vim在出口處恢復shell
也就是說,我想我的殼看起來像這樣:
# whoami
root
# who
root tty1 2011-12-11 16:42
# vim somefile.txt
#
但相反,它看起來是這樣的:
1 hello
2 how is it going?
~
~
~
~
~
~
~
~
#
事實上,它不能做到這一點,除非你的終端支持備用屏幕。對於那些(xterm,gnome-terminal),我相信,vim
會自動執行(相關選項是restorescreen
)。