Created
October 7, 2010 19:10
-
-
Save duff/615695 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In your editor of choice, | |
Convert the following line: | |
context "when the transaction is successful", :focused => true do | |
To: | |
context "when the transaction is successful" do | |
Assume the cursor is on the comma. |
The indent object: http://github.com/austintaylor/vim-indentobject
NICE. Your indent object plugin helped me delete a ton of stuff. I love it.
http://github.com/duff/dot_vim_directory/commit/2cb175deaa1f6a6a10e0dad26292a0b6d4e59424
Austin - OK. The commaobject is outstanding. I just sent you a pull request.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My first pass at the text object: http://github.com/austintaylor/vim-commaobject
It handles the case you show (
da,
will work anywhere between the comma, and the end), but it's still pretty easy to confuse it with nested lists. There's a list of caveats in the readme.