windows下wim配置成IDE

1、配置文件_wimrc

set fileencodings=utf-8,ucs-bom,cp936,big5
set fileencoding=utf-8

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

"设置默认配色方案
colorscheme blue

" 设置winmanager
" 设置界面分割
let g:winManagerWindowLayout = "FileExplorer|TagList"
"设置winmanager的宽度,默认为25
let g:winManagerWidth = 30
let g:winManagerHeight = 80
"定义打开关闭winmanager快捷键为F8
nmap <silent> <F8> :WMToggle<cr>
"在进入vim时自动打开winmanager
let g:AutoOpenWinManager = 1

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
  if $VIMRUNTIME =~ ' '
    if &sh =~ '\<cmd'
      if empty(&shellxquote)
        let l:shxq_sav = ''
        set shellxquote&
      endif
      let cmd = '"' . $VIMRUNTIME . '\diff"'
    else
      let cmd = substitute($VIMRUNTIME, ' ', '" ', '') . '\diff"'
    endif
  else
    let cmd = $VIMRUNTIME . '\diff'
  endif
  silent execute '!' . cmd . ' ' . opt . arg1 . ' ' . arg2 . ' > ' . arg3
  if exists('l:shxq_sav')
    let &shellxquote=l:shxq_sav
  endif
endfunction

2、安装文件管理器和语法提示插件

文件管理器 winmanager

语法提示 ctags

下载后解压,把doc和plugin目录覆盖到vim80目录下。

 

3.安装Bufxplorer

地址: http://www.vim.org/scripts/script.PHP?script_id=42

2.安装Taglist

  在http://www.vim.org/scripts/script.php?script_id=273上下载taglist_45.zip

ctags需要下载源码编译,使用vs2005命令行编译。nmake /f mak_mvc.mak

请阅读readme文件,然后把编译得到的ctags复制到vim80目录下,命令行执行 ctags -R

 

http://ctags.sourceforge.net/

 

posted @ 2017-04-13 22:39  jiftle  阅读(482)  评论(0编辑  收藏  举报