Skip to content

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

@KnightCS

Description

@KnightCS
  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions