Windows下强大的vimrc配置

set nocompatible
source $VIMRUNTIME/vimrc_example.vim
source $VIMRUNTIME/mswin.vim
behave mswin

set diffexpr=MyDiff()
function MyDiff()
  let opt = '-a --binary '
  if &diffopt =~ 'icase' | let opt = opt . '-i ' | endif
  if &diffopt =~ 'iwhite' | let opt = opt . '-b ' | endif
  let arg1 = v:fname_in
  if arg1 =~ ' ' | let arg1 = '"' . arg1 . '"' | endif
  let arg2 = v:fname_new
  if arg2 =~ ' ' | let arg2 = '"' . arg2 . '"' | endif
  let arg3 = v:fname_out
  if arg3 =~ ' ' | let arg3 = '"' . arg3 . '"' | endif
  let eq = ''
  if $VIMRUNTIME =~ ' '
    if &sh =~ '\ ' . arg3 . eq
endfunction
set shortmess=atI   
let g:winManagerWindowLayout='FileExplorer'
color solarized
nmap   :WMToggle
set showmatch
set nu
set tabstop=4
set autoread
filetype plugin on
syntax enable
syntax on
set novisualbell
autocmd! bufwritepost .vimrc source ~/.vimrc
set guifont=MingLiU:h16
let g:tagbar_width=20
let g:tagbar_autofocus=1
nmap  :TagbarToggle

你可能感兴趣的:(黑科技)