When secureCRT uses VIM, highlight the syntax

Source: Internet
Author: User
When secureCRT uses VIM, highlight the syntax. in SecureCRT, syntax highlighting when secureCRT uses VIM is not actually a secureCRT function, but a VIM setting: Options-& gt; SessionOptions-& gt; Terminal-& gt; in Emulation, select Terminal ANSIor...
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
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.