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

How to change the directory which name is the same to the markdown file? #31

Open
elli999 opened this issue Jun 9, 2020 · 2 comments
Open

Comments

@elli999
Copy link

elli999 commented Jun 9, 2020

For example, I am editing a file names "test.md". I want to save the image in the "./test/" folder when I paste.

Is it change the let g:mdip_imdir = 'image' in vimrc file? I don't know how to fill in. How to get the filename...

Please tell me , I am sincerely want to know, thank you very much!

@ferrine
Copy link
Collaborator

ferrine commented Jun 9, 2020

Not sure dynamic path setting is easy. It is set as a constant in vimrc file

@cbxgss
Copy link

cbxgss commented Feb 28, 2023

let g:mdip_imgdir = "assets/" . expand('%:t:r')

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

3 participants