NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Grab It To a Register (Score:1)
If you change the pattern just to position the cursor at the point you're interested in then you can yank the next word into a register with a separate command:
If however, as suggested by the name of your function, your actual desire is not to put the filename into a variable but to go to that file then it's easier to do that directly:
Use
editinstead offindif you don't want to search the path.Smylers
Reply to This
Re:Grab It To a Register (Score:2)
Thanks! That's useful information. I have to admit, I'm thinking about Emacs just because I find the Vim docs so intensely painful. I'm not Stephen Hawking, but I'm not particularly stupid, either. I don't know why I have such trouble with the Vim docs, but I do. This really should have not been so hard to figure out :/