Skip to content

a quick way to insert cliped image to markdown file in vim

Notifications You must be signed in to change notification settings

wenliang/clipboard2image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

clipboard2image

Inspiration

Inspired by the markclip plugin for atom editor. Just copy and paste, saving images got so easy.

aim

  • In browser, right click on image then Copy image
  • Go back to vim, c-v will
    • save the image to local directory ../figure
    • the image name will be it's md5.
    • insert a string to vim, e.g., ![](../figure/xxxxxx.png)

install using vundle

Require pygtk > 2.0.

The tools/clip2image.py is writen in python, but called via bash. Vim does NOT need to compiled with +python.

The tolls/clip2image.py can be used independantly. 😉

put this in .vimrc

Plugin 'wenliang/clipboard2image'

TODO

  • format URL to markdown format
  • make the figure directory configurable.

About

a quick way to insert cliped image to markdown file in vim

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published