解决SecureCRT的vim中为下划线而无高亮问题,附最佳护眼配色方案。
source link: https://zhang.ge/3999.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
今天第一天上班,发现新公司也是用的最熟悉的SecureCRT终端。领到自己的办公电脑后,第一件事就是下载并安装了SecureCRT 7.1。并设置了以前最喜欢的配色(下文会有介绍)。
公司的web软件用的是rensin,以前还真没怎么接触过,仔细拜读了前辈写的超级精简的一套部署教程,发现完全可以写一个懒人脚本一键搞定,于是动手写脚本,顺便进一步熟悉下resin。
写了一半发现以前熟悉的vim高亮没有了,全是下划线,写起来觉得不带劲,于是度了下娘,发现非常简单的解决办法:
SecureCRT下的vim无高亮,而是下划线怎么办?
①、检查 ~/.vimrc 是否开启了高亮:syntax on
②、编辑/etc/profile,追加 export TERM=xterm-color,然后source /etc/profile即可。
Ps:可直接使用: echo export TERM=xterm-color>>/etc/profile && source /etc/profile 命令行搞定。
附录:SecureCRT护眼配色方案(网络搜集,不喜勿用)
①、设置背景颜色
Options => Sessions options => Terminal => Emulation,在 Terminal下拉列表下选择 Xterm 或者 Linux,勾选 ANSI Color,个人更喜欢 Xterm, vim 颜色不刺眼。
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK