Vim Tips Wiki
(Added to Cygwin and Windows Categories ; first cleanup)
m (1-2-3, let's make gvim.exe for free moved to Build Vim in Windows with Cygwin: Page moved by JohnBot to improve title)

Revision as of 09:37, 18 October 2007

Previous TipNext Tip

Tip: #531 - Build Vim in Windows with Cygwin

Created: August 16, 2003 22:45 Complexity: basic Author: maxiangjiang--AT--hotmail.com Version: 6.0 Karma: 26/12 Imported from: Tip#531

This tip is for those who is interested to make gvim.exe on Windows without using MSVC or BCC. The condition is that cygwin is installed. (Another tip for Windows users: cygwin makes Windows really useful!)

Following is three steps (under any shell and any directory)

step 1:

cvs -z3 -d:pserver:anonymous--AT--cvs.vim.org:/cvsroot/vim co vim

step 2:

cd vim/src 

step 3:

make -f Make_cyg.mak IME=yes 

I have tested under Windows 2000 and have used my own gvim.exe for months without any problem.

Special thanks to Dan Sharp to develop/debug Make_cyg.mak, which make it possible.

Comments

Thanks for the useful tip. Does anyone know how to compile regular vim.exe on Windows using the g++ compiler? I prefer the non-GUI vim to gvim.

Thank you, Peter

ptoennies--AT--hotmail.com , September 4, 2003 14:59


Dan has an end-to-end solution for almost all problems for vim compiling on Windows: http://mywebpage.netscape.com/sharppeople/vim/howto/Vim-Compile-Win32-HOWTO/index.html

maxiangjiang--AT--hotmail.com , September 5, 2003 10:49


Dan is good at compiling many programs under Cygwin, not only the gvim, it is he who tells me how to compile MudOS v22 on cygwin.

Anonymous , September 11, 2003 21:12


Use mwing32 -- gcc for windows. Builds native exe.

From http://www.mingw.org/

MinGW: A collection of freely available and freely distributable Windows specific header files and import libraries combined with GNU toolsets that allow one to produce native Windows programs that do not rely on any 3rd-party DLLs.


mohsin--AT--synplicity.com , September 30, 2003 19:31


Note that the resulting gvim.exe built from cygwin package is "native". It has no dependancy on cygwin.dll at all.

maxiangjiang--AT--hotmail.com , October 1, 2003 11:54


The gvim.exe produced does not use cygwin-style paths. :( I've got a lot of cygwin mounts that I would like to use.

Anonymous , October 14, 2003 7:18