Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In cygwin, Java parameters need to use the Windows path #3

Open
KnightCS opened this issue Apr 21, 2017 · 0 comments
Open

In cygwin, Java parameters need to use the Windows path #3

KnightCS opened this issue Apr 21, 2017 · 0 comments

Comments

@KnightCS
Copy link

  • In cygwin, the variable s:jar_path is ~/.vim/plugged/vim-slumlord/plantuml.jar, if java to work properly, s:jar_path should like c:\**\.vim\plugged\vim-slumlord\plantuml.jar.
  • Similarly, the variable tmpfname should also be converted into a windows path.

I modified as follows:

if has("win32unix") || has("win64unix")
    let s:jar_path = substitute(system('cygpath -w "'.s:jar_path.'"'), "\n", '', '')
    let tmpfname   = substitute(system('cygpath -w "'.tmpfname.'"'), "\n", '', '')
endif

let cmd = 'java -jar "'.s:jar_path.'" -charset utf-8 -tutxt "'.tmpfname.'"'

This works fine on my PC and hope you can fix this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant