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

gelguy/snapshot.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

snapshot.vim

###Installation

Use your favourite Plugin manager (e.g. Vim-Plug, Vundle, Pathogen)

The Github repository can be found at gelguy/snapshot.vim

###Usage

This plugin lets you create snapshots of regions of code. This allows you to quickly switch between snapshots of code you have taken. Suppose you need to do a quick refactoring of your code.

  foo() {
    // long code
  }

You can take a snapshot of the code and then attempt to refactor.

  foo() {
    // Code breaks now
  }

Your code breaks, and you just need to revert the snapshot to restore your work.

Each buffer can have multiple snapshot regions, with each region having its own list of snapshots. You can revert to any snapshot or back to the current state.

WARNING: Please read the Bugs section before using!

Do not use Snapshot as a saving function as the snapshots can be lost.

Rather, use it for convenience for quick editing.

###Default Mappings <leader>a Create Snapshot Region (defines where the snapshot starts and ends)

<leader>s Take snapshot

<leader>S View and select snapshots (using <Tab> and <S-Tab>)

<leader>A View and select Region

About

Take snapshots of codes which you can revert to

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published