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