免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1709 | 回复: 0
打印 上一主题 下一主题

SecureCRT linux vim 颜色设置 [复制链接]

论坛徽章:
1
15-16赛季CBA联赛之北控
日期:2022-03-04 22:35:50
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-04-24 13:10 |只看该作者 |倒序浏览

作者: LinuxLevel  出自: http://www.linuxdiyf.com
linux的控制台颜色很好设置:Options ->Session Options -> Terminal -> Emulation 中Terminal选择ANSI or linux or xterm,必须钩上 ANSI Colour
vi的颜色设置,编辑~/.vimrc文件,如下:(^[的输入方式是Ctrl+v然后Ctrl+[)
1 ” ==============================================
2 ” General settings
3 ” ==============================================
4
5 set nocp
6 set ru
7 set nu
8 ” 使用cindent
9 “set cin
10 “set cino = :0g0t0(sus
11
12 set sm
13 set ai
14 ” 缩近
15 set sw=4
16 set ts=4
17 ” 不展开tab为空格,反之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 = inclusive
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 ” 打开语法高亮
54 syntax on
55 ” 使用语法进行折叠
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 ” 设置leader的快捷键,原来的“\”太远了,而且位置还不固定
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

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/31/showart_576047.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP