vim配置文件vimrc
2012-02-26 14:06
148 查看
我的.vimrc文件:
"explicitly get out of vi-compatible mode set nocompatible "don't use local version of .(g)vimrc, .exrc set noexrc "we plan to use a dark background set background=dark "set cpoptions=aABceFsmq "syntax highlighting on syntax on "load filetype plugins/indent setting filetype plugin indent on "always switch to the current file directory set autochdir "make backspace a more flexible set backspace=indent,eol,start "use mouse everywhere set mouse=a "don't make noise set noerrorbells "set whichwrap=b,s,<,>,~,[,] "turn on command line completion wild styl "set wildmenu "turn on wild mode huge list "set wildmode=list:longest "highlight the current colum "set cursorcolumn "highlight current line "set cursorline "BUT do highlight as you type you search phras set incsearch "always show the status line "set laststatus=2 "do not redraw while running macro set lazyredraw "don't blink set novisualbell "tell us when anything is changed via :.. set report=0 "Always show current positions along the bottom set ruler "show the command being typed set showcmd "show matching brackets set showmatch "set statusline=%F%m%r%h%w[%L][%{&ff}]%y[%p%%][%04l,%04v] " no real tabs please! set expandtab "Automatically insert comment leader on return, and let gq format comments set formatoptions=rq "case insensitive by default set ignorecase "do not wrap line set nowrap set paste set shiftwidth=4 set softtabstop=4 set tabstop=4 inoremap ( ()<ESC>i inoremap ) <c-r>=ClosePair(')')<CR> inoremap { {}<ESC>i inoremap } <c-r>=ClosePair('}')<CR> inoremap [ []<ESC>i inoremap ] <c-r>=ClosePair(']')<CR> inoremap < <><ESC>i inoremap > <c-r>=ClosePair('>')<CR> function ClosePair(char) if getline('.')[col('.') - 1] == a:char return "\<Right>" else return a:char endif endf
相关文章推荐
- vim 配置文件(.vimrc)
- 史上最强的vim配置文件.vimrc
- 我的VIM配置文件.vimrc
- 我的vim的vimrc配置文件,保存用 - 飞在天空的鱼 - 博客频道
- 自用vim配置文件.vimrc
- 改写vim配置文件vimrc来实现显示行号,语法高亮,自动缩进功能
- Gvim的配置文件vimrc_example.vim
- Vim的行号、语法显示等设置(.vimrc文件的配置)以及乱码解决
- VIM配置文件vimrc
- Ubuntu下改写vim配置文件vimrc来实现显示行号,语法高亮,自动缩进功能
- 简要高效vim配置文件 .vimrc
- 我的vim的配置文件.vimrc的内容(适用于vim7.2)
- Ubuntu vimrc配置文件 vim 设置行号,缩进距等
- Vim的行号、语法显示等设置,即.vimrc文件的配置
- Vim的行号、语法显示等设置,即.vimrc文件的配置
- vim配置文件.vimrc
- VIM配置文件vimrc
- vim的.vimrc配置文件中如果有文件路径存在空格的解决方法
- 我的vim的vimrc配置文件,保存用
- vim配置文件 .vimrc 。按照那篇将vim打造成IDE来的,成功加入各项功能,另外改善了书签不能保存的情况