码迷,mamicode.com
首页 > Windows程序 > 详细

windows下wim配置成IDE

时间:2017-04-13 22:56:52      阅读:310      评论:0      收藏:0      [点我收藏+]

标签:bom   toggle   源码   diff   else   文件   wim   exec   nmake   

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目录下。

 

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

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

 

windows下wim配置成IDE

标签:bom   toggle   源码   diff   else   文件   wim   exec   nmake   

原文地址:http://www.cnblogs.com/jiftle/p/6706634.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!