Hi,
Reckoner wrote:
>
> I have the following map:
>
> <F2> :call ToggleCppComment("#")<CR>
>
> but when I try to do
>
> :g/print/normal <F2>
>
> it doesn't work the same as doing
>
> :g/print/call ToggleCppComment("#")
>
> what am I missing here?
the <F2> after the normal command is not a not a reference to the
function key, but the sequence of the command <F2 followed by the
(incomplete) command >. To call your mapping you can try
:g/print/exe "normal \<F2>"
Regards,
Jürgen
--
Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us. (Calvin)
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---