Skip to content

WSL image saving issue #66

@qhadron

Description

@qhadron

I was having similar issues as #58, and I think I've found out why.

https://github.com/ferrine/md-img-paste.vim/blob/e81bec83ae68cec99857826ddee63f43e529ec4c/plugin/mdip.vim#L34

This only works for the C: drive. Replacing it with the code below worked for other drives:

let tmpfile = substitute(tmpfile, "\\\\\\\\mnt\\\\\\\\\\(.\\)", "\\1:", "g")
" I found this to be more readable:
let tmpfile = substitute(tmpfile, '\\\\mnt\\\\\(.\)', '\1:', "g")

PS: I have xclip properly set up in Ubuntu 20.04 1 , so the Linux saving functions are working properly.

Footnotes

  1. Using x410.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions