On 2007-02-21, Sean Hubbell <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I seem to be oblivious to what I am doing wrong. I have the following
> mapping I would like to execute from vim:
>
> nmap <F2> :!"/usr/bin/firefox
> 'http://www.google.com/codesearch?hl=en&q=+'<cword>"
>
> I can execute the following from ex, but I am missing something from the
> mapping, does anyone have an ideas?
1. Get rid of the double-quotes ("). They make the argument appear
to the shell to be part of the command name.
2. Add <CR> to the end.
nmap <F2> :!/usr/bin/firefox
'http://www.google.com/codesearch?hl=en&q=+'<cword><CR>
HTH,
Gary
--
Gary Johnson | Agilent Technologies
[EMAIL PROTECTED] | Wireless Division
| Spokane, Washington, USA