Getting gvim to automatically translate a cygwin path

I like cygwin and the native version of windows gvim, and I use them together all the time. The only problem I ran into is cygwin path names. Gvim for windows does not understand them, so I have to resort to typing things like:

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

What is annoying!

I was wondering if there is an optional way to use autocmds to determine if a cygwin path has been provided and, if so, convert it to a Windows path in the FileReadPre event. Does anyone know if / how this can be accomplished?

+3
source share
1 answer

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

: cyg-wrapper.sh ( , , (vim) , , "" , -c, , , , )

cygwin win32-vim, ... , , * nix. , (gcc/make/doxygen/...), . perl script ( vim.org). , , : BuildToolsWrapper ( lh-vim-lib )

, :e /etc/hosts, . - FileReadPre co, , , ^^ '.

+6

Source: https://habr.com/ru/post/1752783/


All Articles