-
Notifications
You must be signed in to change notification settings - Fork 89
Open
Description
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:

If I type "asdf", it shows:

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
Labels
No labels