level 14
VimMSF
楼主
vimrc发出来当备份了,还有一陀ftplugin要写坑爹,kbie......
" 英文兼容性好,你懂的...
set langmenu=none
language mes en
set nocp
if(has('gui'))
" 菜单,工具条,滚动条再见
set guioptions-=r
set guioptions-=R
set guioptions-=l
set guioptions-=L
set guioptions-=b
set guioptions-=t
set guioptions-=T
set guioptions-=m
set guioptions-=M
set gfn=bitstream\ vera\ sans\ mono:h11:cANSI
if(has('win32'))
" 使用*nix分隔符
set shellslash
endif
endif
filetype plugin indent on
syntax on
" 我的配色
colorsch unique
set lines=31 columns=115
set ruler
" 关闭文件备份
set nobackup
set nowritebackup
set enc=utf-8
" 文件编码匹配顺序
set fencs=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936
set number
set nowrap " 禁止折行
set ignorecase
set wrapscan " 循环查找
" 查找高亮
set hlsearch
set incsearch
" 去掉预览窗口
set completeopt=longest,menuone
set complete-=i " 禁止搜索包含文件
set tabstop=4
set shiftwidth=4
set softtabstop=0 " 禁止软tab
set expandtab " 空格扩展tab
set backspace=indent,eol,start " 设置backspce
set autoindent
set history=51
set foldenable
set noshowmatch " 禁止自动匹配括号跳转
set wildmenu " 打开vim命令模式补全菜单
set foldmethod=marker " 偏好手动代码折叠
set foldtext=My_foldtext() " 自定义代码折叠行文本
set fillchars-=fold:- " 去掉代码折叠拖尾的-号
set equalalways " 总是平均分割窗口
set showmode
set guicursor+=a:blinkon0 " 关闭烦人的光标闪烁
" 鼠标再见
set mouse=
set mousemodel=
set nomousefocus
set mousehide
map! <middlemouse> <Nop>
imap <middlemouse> <Nop>
" 关闭自动注释行扩展
auto filetype * setlocal formatoptions-=cro
let g:_tools = $HOME . '/vimfiles/tools'
" 设置隐藏文本
if(has('conceal'))
set cocu= " 任何模式下都将显示当前行的隐藏文本
set cole=2
" 自动隐藏代码折叠标记
auto filetype * call Conceal_comstring()
fun! Conceal_comstring()
if(&foldmethod != 'marker' || &commentstring == '') | return | endif
let [fms, fme] = split(&foldmarker, ',')
let coms = substitute(&commentstring, '%s', fms, 'g')
let come = substitute(&commentstring, '%s', fme, 'g')
let cmd = 'syn match __conceal__ ' . '+' . coms . '\|' . come . '+ conceal'
let cmd = substitute(cmd, '\([*$.^[\]]\)', '\\\1', 'g')
exec cmd
endfun
endif fun! My_foldtext()
let text = substitute(foldtext(), '^+--.\+:\s', '', '')
let text = printf("-+- %4d(%d) lines: %s", v:foldend-v:foldstart, v:foldlevel-1, text)
return text
endfun
2012年09月01日 08点09分
1
" 英文兼容性好,你懂的...
set langmenu=none
language mes en
set nocp
if(has('gui'))
" 菜单,工具条,滚动条再见
set guioptions-=r
set guioptions-=R
set guioptions-=l
set guioptions-=L
set guioptions-=b
set guioptions-=t
set guioptions-=T
set guioptions-=m
set guioptions-=M
set gfn=bitstream\ vera\ sans\ mono:h11:cANSI
if(has('win32'))
" 使用*nix分隔符
set shellslash
endif
endif
filetype plugin indent on
syntax on
" 我的配色
colorsch unique
set lines=31 columns=115
set ruler
" 关闭文件备份
set nobackup
set nowritebackup
set enc=utf-8
" 文件编码匹配顺序
set fencs=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936
set number
set nowrap " 禁止折行
set ignorecase
set wrapscan " 循环查找
" 查找高亮
set hlsearch
set incsearch
" 去掉预览窗口
set completeopt=longest,menuone
set complete-=i " 禁止搜索包含文件
set tabstop=4
set shiftwidth=4
set softtabstop=0 " 禁止软tab
set expandtab " 空格扩展tab
set backspace=indent,eol,start " 设置backspce
set autoindent
set history=51
set foldenable
set noshowmatch " 禁止自动匹配括号跳转
set wildmenu " 打开vim命令模式补全菜单
set foldmethod=marker " 偏好手动代码折叠
set foldtext=My_foldtext() " 自定义代码折叠行文本
set fillchars-=fold:- " 去掉代码折叠拖尾的-号
set equalalways " 总是平均分割窗口
set showmode
set guicursor+=a:blinkon0 " 关闭烦人的光标闪烁
" 鼠标再见
set mouse=
set mousemodel=
set nomousefocus
set mousehide
map! <middlemouse> <Nop>
imap <middlemouse> <Nop>
" 关闭自动注释行扩展
auto filetype * setlocal formatoptions-=cro
let g:_tools = $HOME . '/vimfiles/tools'
" 设置隐藏文本
if(has('conceal'))
set cocu= " 任何模式下都将显示当前行的隐藏文本
set cole=2
" 自动隐藏代码折叠标记
auto filetype * call Conceal_comstring()
fun! Conceal_comstring()
if(&foldmethod != 'marker' || &commentstring == '') | return | endif
let [fms, fme] = split(&foldmarker, ',')
let coms = substitute(&commentstring, '%s', fms, 'g')
let come = substitute(&commentstring, '%s', fme, 'g')
let cmd = 'syn match __conceal__ ' . '+' . coms . '\|' . come . '+ conceal'
let cmd = substitute(cmd, '\([*$.^[\]]\)', '\\\1', 'g')
exec cmd
endfun
endif fun! My_foldtext()
let text = substitute(foldtext(), '^+--.\+:\s', '', '')
let text = printf("-+- %4d(%d) lines: %s", v:foldend-v:foldstart, v:foldlevel-1, text)
return text
endfun