You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+40-1Lines changed: 40 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,15 @@
1
1
# img-paste.vim
2
+
2
3
Yet simple tool to paste images into markdown files
3
4
5
+
*[Use Case](#use-case)
6
+
*[Installation](#installation)
7
+
*[Usage](#usage)
8
+
*[Extend to other markup languages](#extend-to-other-markup-languages)
9
+
*[Asciidoctor](#asciidoctor)
10
+
*[For linux user](#for-linux-user)
11
+
*[Acknowledgements](#acknowledgements)
12
+
4
13
## Use Case
5
14
You are editing a markdown file and have an image on the clipboard and want to paste it into the document as the text ``. Instead of first copying it to that directory, you want to do it with a single `<leader>p` key press in Vim. So it hooks `<leader>p`, checks if you are editing a Markdown file, saves the image from the clipboard to the location `img/image1.png`, and inserts `` into the file.
6
15
@@ -10,7 +19,7 @@ By default, the location of the saved file (`img/image1.png`) and the in-text re
0 commit comments