Tip #462: G's of Vim
tip karma |
Rating 40/40, Viewed by 2593
|
created: |
|
April 22, 2003 18:53 |
|
complexity: |
|
intermediate |
author: |
|
Nitya |
|
as of Vim: |
|
5.7 |
Hi Guys !!
You can play with THE "g" in VIM editor.
Try this
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. It's just like * but don't put < or > around words
so here you can search word which contains word under your cursor
Confused ???? try it NOW :-)
g# same as g* but in backward direction
Now time for gssssss
ggdG takes out all your hard work ;-) I mean deletes the content of the file ..
Happy viming ...
<<Open a Perl module based on it's module name |
XSLT Mappings I use to speed up developing XSLT files. >>
Additional Notes
|