/img-paste.vim

paste image to markdown

Primary LanguageVim ScriptMIT LicenseMIT

img-paste.vim

Heavily refactored version of loblab/img-paste.vim (which itself is a rewrite of img-paste-devs/img-paste.vim). Also rewritten with vim9script, because I can :)

Quick start

" for vim-plug, change for your plugin manager
Plug 'LunarWatcher/img-paste.vim'

Use <C-i> in normal mode to paste images. Config coming Soon:tm:. See also :h imgpaste for more documentation.

Supported operating systems

Windows and Linux (theoretically under both X11 and Wayland; only X11 gets tested)

Changes from upstream

  • Vim9script
  • There's a well-defined interface for defining arbitrary custom paste formats, and for defining what filetypes use what format

License

MIT; see the LICENSE file. Note that the LICENSE file was added on 2024-06-25; prior to this, the repo did not have a LICENSE file at all.