首页 > 代码库 > windows下wim配置成IDE
windows下wim配置成IDE
1、配置文件_wimrc
set fileencodings=utf-8,ucs-bom,cp936,big5set fileencoding=utf-8source $VIMRUNTIME/vimrc_example.vimsource $VIMRUNTIME/mswin.vimbehave mswin"设置默认配色方案colorscheme blue" 设置winmanager" 设置界面分割let g:winManagerWindowLayout = "FileExplorer|TagList""设置winmanager的宽度,默认为25let g:winManagerWidth = 30let g:winManagerHeight = 80"定义打开关闭winmanager快捷键为F8nmap <silent> <F8> :WMToggle<cr>"在进入vim时自动打开winmanagerlet g:AutoOpenWinManager = 1set 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 endifendfunction
2、安装文件管理器和语法提示插件
文件管理器 winmanager
语法提示 ctags
下载后解压,把doc和plugin目录覆盖到vim80目录下。
ctags需要下载源码编译,使用vs2005命令行编译。nmake /f mak_mvc.mak
请阅读readme文件,然后把编译得到的ctags复制到vim80目录下,命令行执行 ctags -R
windows下wim配置成IDE
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。