ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Vintage Surround

by jcartledge ST2/ST3

Vintage keymap to make https://github.com/jcartledge/sublime-surround behave more like surround-vim.

Details

  • 2012.10.22.06.13.57
  • github.​com
  • github.​com
  • 7 years ago
  • 2 hours ago
  • 7 years ago

Installs

  • Total 6K
  • Win 2K
  • OS X 3K
  • Linux 1K
Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2 Sep 1 Aug 31 Aug 30 Aug 29 Aug 28 Aug 27 Aug 26 Aug 25 Aug 24 Aug 23 Aug 22 Aug 21 Aug 20 Aug 19 Aug 18 Aug 17 Aug 16 Aug 15 Aug 14 Aug 13 Aug 12 Aug 11 Aug 10 Aug 9 Aug 8 Aug 7 Aug 6 Aug 5 Aug 4 Aug 3
Windows 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 1 0 0 0 0 2 0 1 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 1
OS X 2 0 0 1 0 0 0 0 1 0 2 0 3 0 1 0 0 0 2 0 0 0 0 0 0 1 0 0 0 1 1 0 0 0 0 6 0 0 0 0 0 0 0 0 0 0
Linux 0 2 0 0 0 0 1 0 1 0 1 4 2 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 1 0 0

Readme

Source
raw.​githubusercontent.​com

vintage-sublime-surround

Vintage-sublime-surround is a SublimeText 2 plugin which adds Vintage key mappings to sublime-surround for a fuller vim-surround-like experience.

Mappings

The added mappings are:

cs in normal mode

Change surround around the current insertion point(s).

ds in normal mode

Delete surround around the current insertion point(s).

ys<motion> in normal mode

Wrap the selection defined by <motion> with something - e.g. ys3iw wraps 3 words beginning with the word containing the insertion point(s).

s in visual mode

Wrap the visual selection with something. Note that this overrides the Vintage-defined (and Vim) behaviour of s in visual mode which deletes the visual selection and enters insert mode - you can still use c to do this.

Installation

You'll need to install Sublime-surround first or these mappings won't do anything. Then install Vintage Sublime Surround in one of the following ways. (Hint: use Package Control.)

Package Control

Package Control is “a full-featured package manager that helps discovering, installing, updating and removing packages for Sublime Text 2.” It's the preferred way to manage your Sublime Text 2 Packages directory.

Follow these instructions to install Vintage-sublime-surround with Package Control.

Using Git

Go to your Sublime Text 2 Packages directory and clone the repository using the command below:

$ git clone https://github.com/jcartledge/vintage-sublime-surround.git

Download Manually

Download the files using the .zip download option.
Unzip the files.
Copy the folder to your Sublime Text 2 Packages directory.