Paul wrote:
> I did this and it worked. However, I was able to further
> narrow down the cause of why this wasn't working for me, and
> I think it's a bug!
>
> {
>      The search happens when inside a block like this }
>
> but {
>      doesn't work when in one like this!
> }

Vim expects a C function to start with a '{' at the left margin.
The problem is that the script uses '[[' to find the beginning
of the function. From ':help [[':
    [[ ... to the previous '{' in the first column.

Question to group:
Is there a good way to jump to the start of the current function
in a case like the following (or in other languages like
Python)?

int func() {
    int a = 1;
    if ( whatever ) {
        a = something();   // say cursor is on '='
    }
    return a;
}

John

-- 
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