[go: up one dir, main page]

Skip to content
This repository has been archived by the owner on Mar 29, 2024. It is now read-only.

SergioRibera/vim-screenshot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Important

Deprecated in favor of codeshot.nvim

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