« | August 2025 | » | 日 | 一 | 二 | 三 | 四 | 五 | 六 | | | | | | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | | | | | | | |
| 公告 |
戒除浮躁,读好书,交益友 |
Blog信息 |
blog名称:邢红瑞的blog 日志总数:523 评论数量:1142 留言数量:0 访问次数:9699860 建立时间:2004年12月20日 |

| |
[开发工具]secrt在实现vim彩色显示 原创空间, 文章收藏, 软件技术, 电脑与网络
邢红瑞 发表于 2011/12/2 15:59:02 |
以前使用Xshell写程序,但是使用secrt的vim一直是黑白色。1、修改/etc/vim/vimrc中的syntax参数为on。
2、设置后仍然不显示颜色,而是使用下划线代替颜色。这个问题是由变量TERM的值不合适导致的,运行命令echo $TERM显示:vt100
那么在~/.profile或 .bashrc中设置$TERM为:xterm-color,如下所示:
export TERM=xterm-color
然后运行命令: source .profile后即可显示颜色。echo $TERM 确认一下
鼠标选中 copy paste的方法
Go to Options \ Global Options on the menu:
In the Category listing, click on Terminal, and you should see this section of the configuration screen:
Just check the first two checkboxes, and you are now in business |
|
|