postgres@linux-o8rc:~> uname -a
Linux linux-o8rc 3.0.76-0.11-default #1 SMP Fri Jun 14 08:21:43 UTC 2013 (ccab990) x86_64 x86_64 x86_64 GNU/Linux
postgres@linux-o8rc:~> vi .bashrc
E437: terminal capability "cm" required
Press ENTER or type command to continue
解决办法:
export PGHOME=/opt/PostgreSQL/9.5/
export PATH=$PGHOME/bin:$PATH
export PGDATA=$PGHOME/data
export LD_LIBRARY_PATH=$PGHOME/lib:$LD_LIBRARY_PATH
umask 022
Linux linux-o8rc 3.0.76-0.11-default #1 SMP Fri Jun 14 08:21:43 UTC 2013 (ccab990) x86_64 x86_64 x86_64 GNU/Linux
postgres@linux-o8rc:~> vi .bashrc
E437: terminal capability "cm" required
Press ENTER or type command to continue
解决办法:
postgres@linux-o8rc:~> export TERM=xterm
再次使用vi显示正常:
postgres@linux-o8rc:~> vi .bashrcexport PGHOME=/opt/PostgreSQL/9.5/
export PATH=$PGHOME/bin:$PATH
export PGDATA=$PGHOME/data
export LD_LIBRARY_PATH=$PGHOME/lib:$LD_LIBRARY_PATH
umask 022
本文介绍了在Linux环境下使用vi编辑器遇到的问题及解决方法。当尝试编辑.bashrc文件时,出现终端能力缺失错误提示。通过设置环境变量TERM为xterm解决了该问题,使得vi编辑器能够正常工作。
1970

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



