On Tue, Nov 1, 2011 at 17:27, Jacobo de Vera <[email protected]> wrote: > I have a similar situation at work, where stuff is compiled inside a > chrooted environment, yet editing happens outside, so full paths in > files are really relative when editing. What I do is to visually > select the path, excluding the initial slash, and then use gf, which > will work on the selected text only. > > Perhaps there is a faster way to do this, I'd love to hear about it. >
A few posts back Gary outlined a remap just for this. It is an excellent post, I recommend going over it rather than just copying the end result here. -- Dotan Cohen http://gibberish.co.il http://what-is-what.com -- 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
