问题
terminal vim 文件之前会显示
E558: Terminal entry not found in terminfo
'screen.linux' not known. Available builtin terminals are:
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'
之后进入的编辑器之前设置的高亮显示什么的都没有了. 编辑时方向键也变成字母.
解决方案
打开我的/etc/profile
,文件尾有上次设置主题的TERM变量
# unknown terminal type
export TERM=screen.linux
改为
export TERM=xterm