【vim】secure crt中vi的颜色设置-语法高亮

1、secure crt里面会话选项-》终端-》仿真里,将终端设置为支持颜色设置的终比如xterm,同时勾选上ansi颜色和使用颜色方案

2、secure crt里面会话选项-》终端-》外观里,光标勾选使用颜色,颜色方案可以选择traditional,或者你对该方案进行下编辑

3、连接到你的服务器,打开.vimrc文件,粘贴上如下代码即可:

set nocp
set ru
set nu
"use inciden
set sm
set ai
" 缩进
set sw=4
set ts=4
"不展开tab为空格
set noet
set lbr
set hls
"语法高亮
syntax on
"使用语法进行折叠
set foldmethod=syntax
 if (has("gui_running" ))
set nowrap
set guioptions+=b
colo inkpot
else
set wrap
colo ron
endif

原文地址:https://www.cnblogs.com/mangu-uu/p/3523863.html