tags:

views:

109

answers:

3

I just want to jump to from one function to the next in .c/.cpp files. How do I do that?

+1  A: 

Take a look at exuberant-ctags it works with Emacs, and your "vim" thing ;-)

p4bl0
+6  A: 

I believe you are looking for ]] which jumps to the next { char on the first column.

There are similar options, just try :help ]] for more information.

spatz
+4  A: 

Regarding the use of [[ and ]], note the following from motion.txt in the vim docs:


If your '{' or '}' are not in the first column, and you would like to use "[["
and "]]" anyway, try these mappings:
   :map [[ ?{w99[{
   :map ][ /}b99]}
   :map ]] j0[[%/{
   :map [] k$][%?}
William Pursell