Skip to content

Commit 0d0b4a2

Browse files
authored
made the instruction for other file types clearer (#62)
1 parent 4d39d4c commit 0d0b4a2

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ autocmd FileType tex let g:PasteImageFunction = 'g:LatexPasteImage'
4040
```
4141
The former sets the (default) markdown paste function for markdown files, while the latter sets the new latex paste function to be used in latex/tex files. The above LatesPasteImage has already been added to the plugin, see `plugin/mdip.vim`. Existing paste functions:
4242

43+
Finally, add the file type (e.g. `tex`) to the first line you added, as
44+
```
45+
autocmd FileType markdown,tex nmap <buffer><silent> <leader>p :call mdip#MarkdownClipboardImage()<CR>
46+
'----'
47+
```
48+
4349
| Filetype | Function name | Content |
4450
|----------|---------------|---------|
4551
| Markdown | MarkdownPasteImage | `![Image](path)` |

0 commit comments

Comments
 (0)