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