How to move from one C/C++ function to the next (both directions)


How to move from one C/C++ function to the next (both directions)



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




VIM Compilation in windows

1:



Set a hidden buffer as 'nobuflisted'
I believe you are looking for ]] which jumps to the next { char on the first column..
Get name of the current file in Vim
There are similar options, just try :help ]] for more information..
show function parameters in vim


Move entire line up and down in Vim


How to make the % (jump to matching bracket) key ignore commented-out code in Vim

2:



How to prevent vim from creating (and leaving) temporary files?
Regarding the use of [[ and ]], note the following from motion.txt in the vim docs:.
Word wrap in Gvim
  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$][%?} 


3:


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



88 out of 100 based on 88 user ratings 1138 reviews