Vintage Surround
Vintage keymap to make https://github.com/jcartledge/sublime-surround behave more like surround-vim.
Details
Installs
- Total 7K
- Win 2K
- Mac 4K
- Linux 1K
Jan 29 | Jan 28 | Jan 27 | Jan 26 | Jan 25 | Jan 24 | Jan 23 | Jan 22 | Jan 21 | Jan 20 | Jan 19 | Jan 18 | Jan 17 | Jan 16 | Jan 15 | Jan 14 | Jan 13 | Jan 12 | Jan 11 | Jan 10 | Jan 9 | Jan 8 | Jan 7 | Jan 6 | Jan 5 | Jan 4 | Jan 3 | Jan 2 | Jan 1 | Dec 31 | Dec 30 | Dec 29 | Dec 28 | Dec 27 | Dec 26 | Dec 25 | Dec 24 | Dec 23 | Dec 22 | Dec 21 | Dec 20 | Dec 19 | Dec 18 | Dec 17 | Dec 16 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 |
Mac | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 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.