Saturday, May 8, 2010

Re: Jumpnig inside a C-function definition

On 09/05/10 06:17, meino.cramer@gmx.de wrote:
>
> Hi,
>
> at work I am using vim as the editor under Windows XP
> for developing C-code.
>
> I want to jump to the beginning and to the end of
> the function where the cursor is currently being
> psoitioned. I want to start the jump from anywhere
> inside that funtion and dont want to jump to the
> beginning/end of the sorrounding block.
>
> I had experimented with [[,][ and sisters but that
> even jumps out of the current function, which is
> correct (according to the help text) but not what
> I tried to acchieve...
>
> How can I accomplish this ?
>
> Have a nice wekend! :)
>
> Best regards,
> mcc
>

I would have thought that (with "typical" coding styles) ][ would bring
you to the closing } of the current function, and then % would bring you
to the opening { (even if at the end of the line containing the function
declaration).


Best regards,
Tony.
--
One difference between a man and a machine is that a machine is quiet
when well oiled.

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

No comments: