When secureCRT uses VIM, highlight the syntax. when SecureCRT uses VIM in secureCRT, syntax highlighting is not actually a function of secureCRT, but a VIM setting: options-> Session Options-> Terminal in Emulation: Select ANSI or linux or xterm. You must hook the ANSI Colour setting option-> Session option-> Terminal-> simulation-> Terminal: linux, select ANSI Color 2. create in the user directory. vimrc [root @ localhost ~] # Vi. vimrc3. Add the. vimrc file to syntax on4. save and reconnect to ssh. Under www.2cto.com, there are many personalized configurations available for the expanded content vi. in vimrc to facilitate your work. Below is a basic configuration set fenc = UTF-8 "set the default decoding set fencs = UTF-8, usc-bom, euc-jp, gb18030, gbk, gb2312, cp936 set nocp "or set nocompatible is used to disable the compatibility mode of VI. set number" display row number set ai "or set autoindent vim uses automatic alignment, that is, apply the alignment format of the current row to the next set si line "or set smartindent according to the alignment format above, intelligently select the alignment mode set tabstop = 4 "set the tab key to 4 spaces set sw = 4" or set shiftwidth set to use 4 spaces set ruler when lines are staggered "during editing, set incsearch "sets incremental search for the Status line at the cursor position in the lower right corner, in this case, the smart set showmatch "highlighted matching parentheses set matchtime = 5" matching parentheses highlighted time (in 1/10 s) is compared) set ignorecase "ignore case sensitive syntax on when searching" highlight syntax