Chinaunix首页 | 论坛 | 博客
  • 博客访问: 69203
  • 博文数量: 24
  • 博客积分: 1410
  • 博客等级: 上尉
  • 技术积分: 260
  • 用 户 组: 普通用户
  • 注册时间: 2009-09-03 10:47
文章分类
文章存档

2011年(1)

2010年(1)

2009年(22)

我的朋友

分类: LINUX

2009-09-14 13:15:39

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" VIM userinterface
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"Set 7 lines to the curors - when moving vertical..
"问题: so是什么?
"so 是scrolloff的意思。缺省是0。如下设定,可以让光标下面(或上面)总有7行显示出来。对编程应该有些用处。
set so=7

"Turn on WiLd menu
"在命令模式下可以显示匹配,比如我要用:wild[tab]则可以显示出所有匹配 CTRL+n/p是前移和后移。
set wildmenu

"Always show current position
"就是右下角的坐标啦
set ruler

"The commandbar is 2 high
"这个可以把cmd那一行指定为固定的几行。这对于编程中的tags有好处。
set cmdheight=2

"Show line number
"显示前端数字。
set nu

"Do not redraw, when running macros.. lazyredraw
set lz:

"Change buffer - without saving
set hid

"Set backspace
"这个可以解释为什么有的人用了backspace但删不了字符
set backspace=eol,start,indent

"Bbackspace and cursor keys wrap to、
"用:set whichwrap? 查得自己的设置为 whichwrap=b,s
"也就是只有按b才可以下一行,s[pace]才可以在一个字一个字的移动的时候跨行。
set whichwrap+=<,>,h,l

"Ignore case when searching
"忽略大小写匹配
set ignorecase  
"设置一边输入一边显示出结果
set incsearch

"Set magic on
"没有用过,查后知道magic可以设置那些元字符要加反斜扛,哪些不要加。
set magic

"No sound on errors.
set noerrorbells
set novisualbell
set t_vb=

"show matching bracets
"加上这个之后,打括号会短暂性的跳到对应括号。
set showmatch

"How many tenths of a second to blink
"紧跟上面的设置,设置在匹配括号上停留的时间
set mat=2

"Highlight search things
" 匹配后的高亮
set hlsearch

阅读(554) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~