How to run from Cygwin Vim?

259 views
Skip to first unread message

Tye

unread,
Feb 1, 2013, 2:58:16 AM2/1/13
to eclim...@googlegroups.com
Because of the projects I currently work on I must use Windows. 

I am still getting used to Eclim but :PingEclim works from Gvim. However, if possible, Cygwin's Vim would be preferable. 
1. Can Eclim be used with both Gvim and Cygwin Vim on the same project? 
2. Where can I find information on getting Eclim working with Cygwin? I saw the announcement of initial support for it but can't see how to get it working. When I :PingEclim from Cygwin Vim it just doesn't recognize the command.

Thank you for this interesting union of my two most used programs.

Eric Van Dewoestine

unread,
Feb 3, 2013, 1:37:55 AM2/3/13
to eclim...@googlegroups.com
On 2013-01-31 23:58:16, Tye wrote:
> Because of the projects I currently work on I must use Windows.
>
> I am still getting used to Eclim but :PingEclim works from Gvim. However,
> if possible, Cygwin's Vim would be preferable.
> 1. Can Eclim be used with both Gvim and Cygwin Vim on the same project?
> 2. Where can I find information on getting Eclim working with Cygwin? I saw
> the announcement of initial support for it but can't see how to get it
> working. When I :PingEclim from Cygwin Vim it just doesn't recognize the
> command.

It sounds like the issue you are running into is the fact that
cygwin's vim and gvim have separate runtime paths, so you'd need to
either add the gvim runtime path to your cygwin vim's vimrc or copy
the eclim vim files over (which is not the best idea since you'd have
to do it every time you upgrade).

To view your runtime path you can run the following in the respective
vim instances:

:echo &rtp

You can append to the runtime path from the respective vimrc file as
well using:

set rtp+=/path/to/other/rtp

So to add the gvim user runtime path to the runtime path of the cygwin
vim, I think it would be something along the lines of (from a cygwin
shell):

$ echo "set rtp+=/cygdrive/c/Documents\ and\ Settings/User\ Name/vimfiles" >> ~/.vimrc

That path may vary depending on your setup.

Also note, that if you have any plugins in your gvim runtime path that
use window's line endings, you may encounter some errors when the
cygwin version of vim attempts to source them. That shouldn't be a
problem for the eclim files though.

Let me know if you have any trouble figuring this out and I'll try to
help you along some more.

> Thank you for this interesting union of my two most used programs.

--
eric

Tye

unread,
Feb 9, 2013, 2:14:46 PM2/9/13
to eclim...@googlegroups.com
Thank you, Eric. That was exactly the information I needed. Everything works beautifully now.
I'll probably be back with more questions once I develop a workflow.

Raul

unread,
May 21, 2013, 10:32:18 AM5/21/13
to eclim...@googlegroups.com
Hi Eric,

Setting rtp worked like a charm!  Thanks.

So, now I can use Cygwin Vim rather than Win GVim, however, in Cygwin Vim all files are always RO (readonly) so I have to force when saving (:w!) all the time.  Is there a setting to make this behave like Win GVim that opens everything RW (readwrite)?  Either I open the files using their path or :LocateFile but they are always RO.  Any ideas would be greatly appreciated.

Thanks
Raul

Eric Van Dewoestine

unread,
May 22, 2013, 11:45:38 AM5/22/13
to eclim...@googlegroups.com
On 2013-05-21 07:32:18, Raul wrote:
> Hi Eric,
>
> Setting rtp worked like a charm! Thanks.
>
> So, now I can use Cygwin Vim rather than Win GVim, however, in Cygwin Vim
> all files are always RO (readonly) so I have to force when saving (:w!) all
> the time. Is there a setting to make this behave like Win GVim that opens
> everything RW (readwrite)? Either I open the files using their path or
> :LocateFile but they are always RO. Any ideas would be greatly appreciated.
>
> Thanks
> Raul

I'm no cygwin expert, but perhaps this will help...

http://stackoverflow.com/questions/4647752/cygwin-vim-windows-7-file-access-issue
--
eric

Raul

unread,
May 23, 2013, 10:50:24 AM5/23/13
to eclim...@googlegroups.com
Thanks Eric it worked!

FYI, I had to change my fstab (add the noacl option) and it worked after a restart.

Happy Eclimming!
Raul
Reply all
Reply to author
Forward
0 new messages