Vintage keymap to make https://github.com/jcartledge/sublime-surround behave more like surround-vim.
- Total 7K
- Win 2K
- Mac 3K
- Linux 1K
|Jun 3||Jun 2||Jun 1||May 31||May 30||May 29||May 28||May 27||May 26||May 25||May 24||May 23||May 22||May 21||May 20||May 19||May 18||May 17||May 16||May 15||May 14||May 13||May 12||May 11||May 10||May 9||May 8||May 7||May 6||May 5||May 4||May 3||May 2||May 1||Apr 30||Apr 29||Apr 28||Apr 27||Apr 26||Apr 25||Apr 24||Apr 23||Apr 22||Apr 21||Apr 20||Apr 19|
Vintage-sublime-surround is a SublimeText 2 plugin which adds Vintage key mappings to sublime-surround for a fuller vim-surround-like experience.
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.
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 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.
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 the files using the .zip download option.
Unzip the files.
Copy the folder to your Sublime Text 2 Packages directory.