Friday, June 18, 2010

Re: moving thru function definitions

On Jun 17, 4:18 pm, Horacio Hidalgo <horacio.hida...@gmail.com> wrote:
> Hi,
>
> I am wondering if there is any way to move inside a C file just by going
> from one function declaration to the next one back and forth, I remember I
> have seen macros to fold the functions and just keep the definitions to the
> eye but I would like to see if there is any other way
>

Macros for folding? Not really...

For C code (assuming you have syntax highlighting on), just:

:setlocal fdm=syntax
zM

But you probably are looking for the ]], [[, etc. mentioned by others.

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