On Thu, March 10, 2011 10:35 am, Jeroen Budts wrote:
> I'm looking for the quickest method to yank an entire (php) function
> when the cursor is somewhere in the first line of the function
> definition like this (| = cursor):
>
> fun|ction foobar() {
>    if (true) {
>      return "not false :)";
>    }
> }
>
> One possible solution would be:
> jvaBVy
> But I'm wondering if there it is possible in a shorter way and maybe
> without using visual mode.

f{y%
or even shorter:
$y%
(if the opening brace is always the last character on the line)

Is this for something like vimgolf?

regards,
Christian

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to