Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 899603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T15:14:48+00:00 2026-05-15T15:14:48+00:00

I love cygwin and the native windows version of gvim and I use them

  • 0

I love cygwin and the native windows version of gvim and I use them together all the time. The only problem I have is with cygwin path names. Gvim for windows doesn’t understand them so I have to resort to typing things like:

gvim `cygpath -wa ~/scripts/myscript.pl`

Which is annoying!

I was wondering if there’s a neat way of using autocmds to detect if a cygwin path has been provided and, if so, convert it to a windows path on the FileReadPre event. Does anyone know if/how this can be acomplished?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T15:14:49+00:00Added an answer on May 15, 2026 at 3:14 pm

    There exist several solutions (see vim.wikia.com, cygwin category).

    I’m maintaining the more flexible one: cyg-wrapper.sh (flexible in the sense it knows that (vim) flags are not pathnames, and it can even be told that “binary” flags like -c expect another argument that is not a pathname, and in the sense that it is not vim specific)

    Regarding the invocation of cygwin executables from win32-vim, you won’t have any troubles … as long as the executable won’t return pathnames expressed in *nix format.
    For all compilation related executables (gcc/make/doxygen/…) I also have a solution. In the past it was a simple standalone perl script (still available on vim.org). Now I have a full solution that does other compilation related stuff: BuildToolsWrapper (that requires lh-vim-lib on the same site)

    Regarding things like :e /etc/hosts, I have no solutions. A long time ago, I’ve tried to play with FileReadPre & co, but I gave up along the way, and I don’t remember why ^^’.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I love doctests, it is the only testing framwork I use, because it is
I love the idea of Qt, however I use it not only for open
Love the JQuery Treewiev plugin http://bassistance.de/jquery-plugins/jquery-plugin-treeview/ , but I have one problem with it.
I love WinSCP for Windows. What is the best equivalent software for Linux? I
I love scaffolding and it extremely helpful for prototyping. But Should we use scaffolding
Love these forums, I am a beginner when it comes to VB.NET and have
Would love to have a keyboard shortcut that get's the latest for a solution
I love jQuery. I am probably going to have some XML parsing and manipulation
I love Eclipse's quickfixes. I use the assign parameter to new field often, but
I love Linqpad and I'm studying IronPython. Can I use Linqpad as my code

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.