sponsor Vim development Vim logo Vim Book Ad

cygwin.vim : Compiler plugin for cygwin-tools used from the win32 native version of Vim

 script karma  Rating 16/6, Downloaded by 3140  Comments, bugs, improvements  Vim wiki

created by
Luc Hermitte
 
script type
utility
 
description
This file is useful with gcc and other programs run from make, when these tools come from Cygwin and the version of Vim used is the win32 native version.
In other environments, Vim default settings are perfect.

Reason: the filenames (for whom gcc reports errors) are expressed in the UNIX form, and Vim is unable to open them from the quickfix window. Hence the filtering used to replace '/' (root) by {cygpath -m /}.
Since the version 20040616, this plugin is also able to follow symbolic links -- defined from cygwin.

At this time, it has only be tested with gcc, but I guess it should be useful with other compilers built for cygwin.


Improvments are certainly posible. Any feedback is welcomed!
 
install details
Copy the file into one of your {rtp}/compiler/ directory, and be sure that $TERM or $OSTYPE value 'cygwin' before doing a:
  :compiler cygwin
and then
  :make target

The version 20040616 requires Perl (tested OK with cygwin's one) and cygUtils (more precisely: realpath).
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
compiler-cygwin.tar.gz 20040616 2004-06-16 6.0 Luc Hermitte Now follows symbolic links (requires perl and realpath)
cygwin.vim 20040213 2004-04-30 6.0 Luc Hermitte Fix: Do not try to convert non absolute pathes
cygwin.vim 20030331 2003-07-29 6.0 Luc Hermitte Initial upload
ip used for rating: 44.211.91.23

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github