6

解决SecureCRT的vim中为下划线而无高亮问题,附最佳护眼配色方案。

 3 years ago
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.
neoserver,ios ssh client

今天第一天上班,发现新公司也是用的最熟悉的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 颜色不刺眼。

默认的 ANSI Color 的背景颜色是黑色,感觉看久了很不舒服,可以修改背景颜色。
options -> global options ->Terminal ->Apperance -> ANSI Color, Default, 点击黑色的那项, 修改为下面的颜色比较舒服,颜色是:H, S, L = 128,240,25
②、设置字体颜色
白色字体看上去也不舒服,同样可以修改:
③、设置目录颜色
④、设置压缩文件颜色
⑤、设置字体
Options => Global Options=>General=> default session=> Edit default => Appearance =>Font。
Consolas 或者 Courier New 这两种字体都不错.
⑦、设置光标颜色
没有光标非常不方便, 如果光标颜色设置的和背景颜色一致, 则看不到光标。
⑥、最终效果
Ps:由于时间关系,并未实测截图,以上文字及配图均来自网络,喜欢这种配色的朋友可以参考设置。

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK