Tip 462 Printable Monobook Previous Next
created 2003 · complexity basic · author Nitya · version 6.0
Place the cursor on any variable in your program.
- gd will take you to the local declaration.
- gD will take you to the global declaration.
- g* search for the word under the cursor (like *, but g* on 'rain' will find words like 'rainbow').
- g# same as g* but in backward direction.
- ggdG deletes all lines (remember u to undo).
- g] Go to global difinition (http://stackoverflow.com/questions/680291/global-go-to-definition-in-vim-for-ruby).
See also
- Open file under cursor use gf to go to a file