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.

Henrik.

PS. Good choice of toolchain! ;)

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

Reply via email to