On Wed, Sep 23, 2009 at 7:38 PM, Henrik Öhman <[email protected]> wrote:

>
> On Sep 23, 8:44 am, Steven Woody <[email protected]> wrote:
> > Hi,
> > I am setting an external pathname to the path variable.  I found when the
> > pathname has no spaces, it works, but it doesn't work if it has embedded
> > spaces.  Enclosing it with "" also doesn't work.
> >
> > What's wrong with that?  Thanks.
>
> If you're using 'tags', and call 'ctags' with the '--extra=+f' option,
> you can use the following awesome mappings to improve the 'gf' and '<C-
> w>f' commands:
>
> nnoremap <expr> gf empty(taglist(expand('<cfile>'))) ? "gf" : ":ta <C-
> r><C-f><CR>"
> nnoremap <expr> <C-w>f empty(taglist(expand('<cfile>'))) ? "\<C-w>f" :
> ":stj <C-r><C-f><CR>"
>
> This avoids having to use the 'path' variable altogether.
>
>
Yeah, I have ctags, but could you explain these nnoremap commands, look hard
to me :)


> Henrik.
>
> PS. Good choice of toolchain! ;)
>
> >
>


-- 
Life is the only flaw in an otherwise perfect nonexistence
   -- Schopenhauer

narke
public key at http://subkeys.pgp.net:11371 ([email protected])

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to