any way to gF to a named position rather than a line number?

On Thu, Nov 4, 2010 at 1:40 PM, Ben Fritz <[email protected]> wrote:

>
>
> On Nov 3, 5:21 am, Joe LB <[email protected]> wrote:
> > I'm looking for a way to insert links to related files via comments,
> > it should work in a similar way to html anchors.
> >
> > eg.
> >
> > in php:
> >
> > echo "foo"; // ref("name","path/to/related/javascript/file#foo");
> >
> > .js:
> >
> > console.log("foo"); // a("foo")
> >
> > console.log("bar"); // a("bar")
> >
> > somethingThatTalksToRailsViaAjax("hello world"); // ref("controller","/
> > application/controllers/world#hello");
> >
> > .rb:
> >
> > puts "hello world"; # a("hello");
> >
> > I hope this example explains what i'm trying to acheive. It would be
> > nice for someone to make this for me or point me in the right
> > direction to an existing plugin or similar plugin to base this off.
> >
> > I think this would be hugely beneficial especially for mvc and coding
> > where a mix of languages is involved as i don't think ctags mixes up
> > languages by default.
> >
>
> If you're just doing this in Vim, you can easily jump to files or
> specific lines in files with the gf, gF, and related commands.
>
> So you could format a comment like this:
>
> # /path/to/some/file|42|
>
> and press gF on the comment to jump to line 42 of the indicated file.
>
> --
> You received this message from the "vim_use" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
>

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to