On Jan 12, 4:43 am, Bysnn <[email protected]> wrote:
> Hi guys, I use vim to edit my PHP project, sometimes i need to jump to
> the declaration of functions and variables, or jump to many marked
> positions. Maybe only in one file, i forward to many position
> (anchor), is there any plugin, or any usefull vim script to easy
> forward/backword to the positions? If it support to jump to different
> file positions, that's good enough,
>
> The feature i want just like in Zend Studio, you can use <Alt-,>,
> <Alt-.> to forward/backward positions.
>
> I have tried cscope, ctags, but these still not work perfectly, and
> they dont save marks. Maybe i need to save the specific positions
> info, so i wrote a script, and it can jump from one file now. Below
> is part of my script, any errors, pls correct me:), and if you know
> any plugin, pls tell me, thanks.
>
> [long, complex, probably very slick vimscript]
Hey, you did a lot of work for this! I think, though, the
functionality you want is built-in.
Press ma, mb, mc, etc. to set a mark.
Press 'a, 'b, 'c, etc. to go to a specific mark.
Press ]' to go to the next line with a mark.
Press [' to go to the previous line with a mark.
See more at :help mark-motions. There are a whole lot of commands for
working with and viewing them!
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---