SergioRibera / vim-screenshot

Beautifull screenshots for your code writed in (Neo)vim (I'm rewriting in rust)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vim-Screenshot

This is a simple plugin that allows you to take snapshots to snippets of your code with a highly customizable format, besides being beautiful, it includes 70+ of pre-set themes.

Requirements

To be able to use this extension, it is essential that you have the following installed:

  • NodeJs
  • npm

Installation

Plug:

Plug 'SergioRibera/vim-screenshot', { 'do': 'npm install --prefix Renderizer' }

The other way would be cloning the repository.

Instructions

Variables

Name Default Value Description
g:vimShotSavePath ~/Images/code-screenshot This is the path to the directory where all generated images will be saved

Functions

Name Description
TakeScreenShot() This function takes the selected lines and converts them into the image with the settings you have indicated.
OpenFileScreenshotSettings() This function opens in a new tab the configuration file in JSON format to customize the image.
OpenPreviewPage() This function opens in the binary a test page that allows in a graphical way to configure and see all the themes that the plugin brings, THIS FUNCTION DOES NOT SAVE THE CHANGES; IT SAVES THEM IN THE CLIPBOARD you must paste that in the configuration files calling the previous function and replacing the contents

Commands

Name Description
:TakeScreenShot This command captures the lines selected in visual mode and converts them into an image.
:OpenFileScreenshotSettings This command calls the function OpenScreenshotSettings()
:OpenPreviewPage This command calls the OpenPreviewPage() function.

Examples

Graphical Explication Directory Create

Graphical Explication File Create

Graphical Explication File Create

Please report all bugs and problems

Thanks for install this tool, for see more visit my web (Very soon I will add an app store)

Donate

ko-fi



Made with the ❤️ by SergioRibera

About

Beautifull screenshots for your code writed in (Neo)vim (I'm rewriting in rust)

License:GNU Affero General Public License v3.0


Languages

Language:JavaScript 60.7%Language:CSS 33.2%Language:HTML 5.0%Language:Vim Script 1.1%