% vim test.sh
E558: Terminal entry not found in terminfo
'linux' not known. Available builtin terminals are:
builtin_gui
builtin_riscos
builtin_amiga
builtin_beos-ansi
builtin_ansi
builtin_pcansi
builtin_win32
builtin_vt320
builtin_vt52
builtin_xterm
builtin_iris-ansi
builtin_debug
builtin_dumb
defaulting to 'ansi'
You can copy the necessary terminfo descriptions to remote hosts as follow:
1. On the local system, dump the description to text format, infocmp linux > linux.ti;
2. Copy to the remote host and compile,tic linux.ti, The descriptions will be stored in ~/.terminfo.
infocmpandticare part of the ncurses or ncurses-bin packages in most Linux distributions, as well as most BSDs that use ncurses.
REFERENCE
https://superuser.com/questions/431922/tmux-and-screen-256-term-not-supported-on-remote-hosts
本文介绍了当使用Vim遇到E558错误时的解决方案,该错误通常出现在远程连接中,文中详细解释了如何通过复制必要的终端描述符到远程主机来解决此问题,并提供了具体的步骤指导。
12万+

被折叠的 条评论
为什么被折叠?



