$ hg clone https://code.google.com/p/vim/ vim $ hg update v7-4-258 //切换到你想编译版本的标签 或 $ git clone https://github.com/vim-jp/vim.git vim $ git checkout v7-4-258
启动“Visual Studio 命令提示” 启动Visual Studio命令行工具。python
切换到vim源代码路径(src)。git
> nmake -f Make_mvc.mak GUI=yes MBYTE=yes \ PYTHON=C:\Python27 DYNAMIC_PYTHON=yes \ PYTHON_VER=27 SNIFF=yes CPUNR=i686
> nmake -f Make_mvc.mak GUI=no MBYTE=yes \ PYTHON=C:\Python27 DYNAMIC_PYTHON=yes \ PYTHON_VER=27 SNIFF=yes CPUNR=i686
复制src/
下的vim.exe,gvim.exe,install.exe,uninstall.exe,vimrun.exe
和GvimExt/
下的gvimext.dll(用来添加系统右键菜单的Edit with Vim
),还有xxd/
下的xxd.exe到运行时目录。github
经过运行install.exe进行安装,并注册右键菜单。ubuntu
$ sudo apt-get build-dep vim
$ ./configure --with-features=huge \ --enable-rubyinterp \ --enable-pythoninterp \ --enable-perlinterp \ --enable-luainterp \ --enable-gui=gnome2 --enable-cscope $ sudo make install