cygwin.vim


Ⅰ. 插件描述

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

Ⅱ. 基本信息

创建日期:  2003-07-29
使用用户:  1
Github星:  1
插件作者:  Luc Hermitte

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin '/cygwin-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle '/cygwin-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug '/cygwin-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/vim-scripts/cygwin.vim

Ⅳ. 文档说明

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!

添加新评论