sponsor Vim development Vim logo Vim Book Ad

vim-shoot : Vim plugin to take screenshots of code

 script karma  Rating 0/0, Downloaded by 254  Comments, bugs, improvements  Vim wiki

created by
Jack McKiernan
 
script type
utility
 
description
Use the command :TOpng to capture a screenshot of the selected lines (or the whole buffer if no lines are selected).

The image will be saved in vim's working directory.

Options
- g:shoot_zoom_factor - Used to zoom image (default: 2)

GitHub repo: https://github.com/JMcKiern/vim-shoot
 
install details
Requirements

- Vim compiled with python3 support (check this with :echo has('python3'))
- Python 3
- Chrome or Firefox (a browser based on either of these should work too)

Installation

After downloading the plugin, run the install.py script in the plugin's directory. It must take an argument specifying the webdriver to use:
For Chromium-based browsers:
  ./install.py chromedriver
For Firefox-based browsers:
  ./install.py geckodriver

This script does two things. First, it installs the selenium and requests packages. Second, it downloads the appropriate binary for the specified webdriver. These are all isolated to the plugin's local directory.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
vim-shoot-0.0.1.zip 0.0.1 2020-09-05 8.0 Jack McKiernan Initial upload
ip used for rating: 18.224.149.242

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github