On 22/05/08 08:51, Yakov Lerner wrote:
> On Wed, May 21, 2008 at 6:49 PM, Philippe Fremy<[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> I am playing with --remote-send. I have the following problem:
>>
>> d:\work\vimWrapper\vimWrapper1\pyvimwrapper\tests>gvim --servername HOP
>> --remote -send ":map<F4> icoucou<LT>CR><LT>ESC>j<CR>"
>>
>> This sets the function key<F4> to do "icoucou<CR><ESC>j", i.e. insert
>> coucou + end of line, return to normal mode and go one line down. After
>> it has been executed, it works if I press the<F4> function key.
>>
>> However:
>>
>> d:\work\vimWrapper\vimWrapper1\pyvimwrapper\tests>gvim --servername HOP
>> --remote -send "<F4>"
>>
>> does strictly nothing.
>
> Use are sending 4 characters here, '<', 'F', '4','>'.
> Ask on vim_use forums for the solution.
>
> Yakov
To use <> notation in a quoted string (unlike its use in a mapping
definition), an escaping backslash must be used. Try --remote-send
"\<F4>" (with of course no space between --remote and -send).
Best regards,
Tony.
--
America is a large, friendly dog in a very small room. Every time it
wags its tail, it knocks over a chair.
-- Arnold Joseph Toynbee
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---