On Mon, Feb 15, 2010 at 10:16 AM,  Olaf wrote:
>
> I notice that the functionality of CTRL-p in pyclewn is different than with
> vimgdb, and perhaps is broken when using pyclewn with vim on a console? When I
> press CTRL-p, it just sends a "print" command to gdb, which answers:
>
>    The history is empty.
>


Thanks for reporting this problem.

Pyclewn relies on the Vim balloon evaluation feature (:help balloon-eval),
to get the text under the mouse position. This feature is not
available with vim console. A workaround is to add one's own mapping in
order to implement the same functionality by running the Vim command
(or add it to .vimrc):

    :map <C-P> :exe "Cprint " . expand("<cword>") <CR>

If the 'Cmapkeys' command is used, one must also remove the existing
<C-P> mapping by replacing in .pyclewn_keys.gdb:

    # C-P : print ${text} # print value of selection at mouse position

with:

    C-P :

I will update pyclewn documentation.


Xavier

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Pyclewn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyclewn-general

Reply via email to