Skip to content

Custom path doesn't work in Ubuntu20.4 / Vim 8.1.2269 #32

@elli999

Description

@elli999

I add these in vimrc

let g:mdip_imgname = 'test'
 
function SavePic()
    let pp = expand('%:t:r')
    let g:mdip_imgdir = pp
endfunction

autocmd BufEnter *.md call SavePic()

and it worked in windows.

Now I use it in Ubuntu 20.4, it can save the picture in the custom path, but in the markdown file, it inputs a default name and default path text.


After "leader"p, If I just press "Enter", it shows:

![Image](img/test_2020-07-26-22-22-42.png)

If I type "asdf", it shows:

![Image](img/asdf.png)

Which means, these setting in Windows, it worked. But in Ubuntu, it didn't.

And in Ubuntu, it's saving function is OK. But the input text, it didn't work.


I think may be the problem is in the mdip.vim, the Linux part?

I'm try my hard to read the mdip.vim file, but it's difficult to me...

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