安卓平板画图软件:我的gvim的配置

来源:百度文库 编辑:偶看新闻 时间:2024/04/29 08:05:04
set nocompatible
source $VIMRUNTIME/vimrc_example.vim
source $VIMRUNTIME/mswin.vim
behave mswinset 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 =~ '\      let cmd = '""' . $VIMRUNTIME . '\diff"'
      let eq = '"'
    else
      let cmd = substitute($VIMRUNTIME, ' ', '" ', '') . '\diff"'
    endif
  else
    let cmd = $VIMRUNTIME . '\diff'
  endif
  silent execute '!' . cmd . ' ' . opt . arg1 . ' ' . arg2 . ' > ' . arg3 . eq
endfunction
set nu
syntax on
syntax enable
set tags=tags;
set tabstop=4
set cindent shiftwidth=4
set autoindent shiftwidth=4
set autochdir
set nobackupset ambiwidth=double
let g:winManagerWindowLayout='FileExplorer|TagList'
nmap wm :WMToggle
let g:miniBufExplMapCTabSwitchBufs=1
let g:miniBufExplMapWindowsNavVim=1
let g:miniBufExplMapWindowNavArrows=1
nnoremap :A
nnoremap :Grep
set cin map th :tabnext
map tl :tabprev
map tn :tabnew
map td :tabclose
set mouse=a
au BufEnter /usr/include/c++/* setf cpp
au BufEnter /usr/include/g++-3/* setf cpp\
set comments=://
set comments=s1:/*,mb:*,ex0:/
set tags=./tags,./../tags,./**/tags
set fileformats=unix,dos
set autoread
:highlight OverLength ctermbg=red ctermfg=white guibg=red guifg=white
:match OverLength '\%101v.*'
set cmdheight=1
set wildmenu
autocmd BufReadPost *
\ if line("'\"") > 0 && line("'\"") <= line("$") |
\   exe "normal! g`\"" |
\ endif
set foldenable
set foldmethod=manual
nnoremap @=((foldclosed(line('.')) < 0) ? 'zc' : 'zo')
set ignorecase
set tags=tags;
" 按照名称排序
let Tlist_Sort_Type = "name"
 
" 在右侧显示窗口
let Tlist_Use_Right_Window = 1
 
" 压缩方式
let Tlist_Compart_Format = 1
 
" 如果只有一个buffer,kill窗口也kill掉buffer
let Tlist_Exist_OnlyWindow = 1
 
" 不要关闭其他文件的tags
let Tlist_File_Fold_Auto_Close = 0
 
" 不要显示折叠树
let Tlist_Enable_Fold_Column = 0"配色方案
colorscheme zellner"高亮搜索
set hlsearch"搜索时直接高亮
set incsearch"去掉菜单栏
"set go=eset guifont=Courier_New:h12:b:cANSI