Use SecureCRT to set the color of Linuxvim

Source: Internet
Author: User
Use SecureCRT to set the color of Linuxvim-Linux general technology-Linux technology and application information. The following is a detailed description. Linux console color settings: Options-> Session Options-> Terminal-> in Emulation, select ANSI or linux or xterm for Terminal. ANSI Colour must be hooked.

Vi color settings, edit ~ /. Vimrc file, as follows: (^ [the input method is Ctrl v and then Ctrl [)



1 "============================================== ==========
2 "General settings
3 "============================================== ==========
4
5 set nocp
6 set ru
7 set nu
8 "use cindent
9 "set cin
10 "set cino =: 0366t0 (sus
11
12 set sm
13 set ai
14 "scale down
15 set sw = 4
16 set ts = 4
17 "do not expand the tab as a space, and vice versa set et
18 set noet
19
20 set lbr
21 set hls
22 "set backspace = indent, eol, start
23 "set whichwrap = B, s, <,>, [,]
24 "set fo = mB"
25 set selectmode =
26 "set mousemodel = popup
27 set keymodel =
28 "set selection = random sive
29 "set matchpairs =
30
31 "============================================ ==========
32 "Cursor movement
33 "=============================================== ==========
34 "nnoremap gj
35 "nnoremap gk
36 "vnoremap gj
37 "vnoremap gk
38 "inoremap gj
39 "inoremap gk
40
41 "nnoremap g $
42 "nnoremap g0
43 "vnoremap g $
44 "vnoremap g0
45 "inoremap g $
46 "inoremap g0"
47
48 "nmap: confirm bd
49 "vmap: confirm bd
50 "omap: confirm bd
51 "map! : Confirm bd
52
53 "enable syntax highlighting
54 syntax on
55 "fold with syntax
56 set foldmethod = syntax
57
58 if (has ("gui_running "))
59 set nowrap
60 set guioptions = B
61 colo inkpot
62 else
63 set wrap
64 colo ron
65 endif
66
67 "set the leader shortcut key. The original" \ "is too far away and its location is not fixed.
68 "let mapleader = ","
69
70 if! Has ("gui_running ")
71 set t_Co = 8
72 set t_Sf = ^ [3% p1 % dm
73 set t_Sb = ^ [4% p1 % dm
74 endif

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.