Skip to content

zzxworld/vim-image_paste

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Vim 图片粘贴插件

使用 Vim 写 Markdown 时,插入图片是个不太方便的操作。这个 Vim 插件可以解决这个小麻烦。

安装插件后,复制图片到剪贴板,然后输入命令: :call image_paste#PasteImage(), 就可以自动保存剪贴板中的图片并在光标位置插入转换后的图片地址代码。

插件依赖:

  1. OS X 系统
  2. pngpaste

项目 fork 自 unicornrainbow/vim-image_paste。为了更好的与 Jekyll 协作,我对原项目做了一些修改。

以下为原英文项目介绍:

Requirements

Currently supports OS X. Windows and linux support planned.

On OS C, you must have the pngpaste command in your path.

Installation

Use Pathogen or Vundle to install and activate.

Usage

The following will save any image in the clipboard to /images, and include a markdown image link referencing it within the current document.

:call image_paste#PasteImage

You can map to a command that is more easy to type within your .vimrc as follows.

command! PasteImage :call image_paste#PasteImage()

License

This code is free to use under the terms of the MIT license.

Copyright (c) 2014 Blake Taylor

See LICENSE file for further details.

About

Image pasting for vim

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 100.0%