Topics for the meeting

0 views
Skip to first unread message

Ben Rady

unread,
Feb 10, 2010, 12:58:07 PM2/10/10
to vimchicago
Just throwing this out there...Lets say I've got a one line block like so:

add_hook {some_instruction}

Say my cursor is sitting somewhere in the middle of this block. What is the motion to change the contents of the block? I can back up to the 's' in 'some_instruction' and then do `ct"` (change till "), but why should I need to back up?

This example is particular to Ruby, but it shouldn't matter.


Fred Lee

unread,
Feb 10, 2010, 1:46:21 PM2/10/10
to vimch...@googlegroups.com
@Ben:

Do "ci{".
You can also do "ci(", or "ci"".

Tyler Jennings

unread,
Feb 10, 2010, 2:00:48 PM2/10/10
to vimch...@googlegroups.com
awesome.

Kevin Taylor

unread,
Feb 10, 2010, 2:51:33 PM2/10/10
to vimch...@googlegroups.com
I was going to say, "cib" which is change-inner-block. But it doesn't recognize squiggles as block delimiters.

Nice tip, Fred.

--
Kevin P. Taylor
312.380.6672

//obtiva - Agility Applied. Software Delivered.

http://obtiva.com


On Wed, Feb 10, 2010 at 12:46 PM, Fred Lee <lee.f...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages