Skip to content

linktohack/VintageYankStack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

Vintage YankStack

A yankstack (or Emacs Kill Ring equivalent) for ST3's Vintage

What is it?

One of the killer features from Emacs is Kill Ring, which allow to paste the previous of previous killed (or yanked, deleted in Vim style) in place previous paste region. That means, no clipboard selection, no :ls and no undo.

Sublime Text introduces a kill ring compatible with Emacs but it doesn't do what it should do, especially with Vintage, so I wrote it my self. The idea (and name) from the excellent YankStack plugin for Vim which is lightweight and elegant.

Install

Via package control (Recommended)

CTRL+SHIFT+P, Install Packagee, then YankStack to install.

Manual

Clone this repo to your Packages directory, modify the keymap if needed.

Usage

Default keymaps are:

  • CTRL+P: Paste from higher register in stack
  • CTRL+N: Paste from lower register in stack

No worrier about key conflict, the above keymaps work only if the last action was a paste, or yankstack it self, see keymap file for details.

So a normal work routine is like this:

  1. Copy (y), delete(d), change(c) in serveral place.
  2. Move to the place you need to paste some of those.
  3. Paste (p, P), if it not what you want, just hit CTRL+P to cycle the registers back to what you need, if you miss it, hit CTRL+N to cycle them forward.

License

MIT

About

A yankstack (or Emacs Kill Ring equivalent) for ST3's Vintage

Resources

Stars

Watchers

Forks

Packages

No packages published