Easily take "screenshots" of your code in vim.
The actual code -> image transformation is done with pygments, so you need
to have it installed.
The plugin also requires xclip, so it's not going to work on Mac.
Check out this small demo:
:Codeshot will put an image with your code in the system clipboard that you
can paste wherever you need.
The command uses ranges, so you can select some text to and invoke it to take a
partial shot, or in general use any range (:%Codeshot is the default when no
selection is available).
You can control the appearance of the code using the following options:
g:CodeshotStyle: Pygments style (i.e. Color scheme). Check the Pygments demo for a list of available styles. (defaulttrac)g:CodeshotFontSize: Font size. (default32)g:CodeshotShowLineNumbers: Show line numbers. (default0for no line numbers,1will show them)g:CodeshotTrim: Run ImageMagick'sconvertto trim empty space around the image. Ifconvertis not available it will not run (default1)