Loading ...
Sorry, an error occurred while loading the content.

C-c in the gVim menu

Expand Messages
  • Andre Berger
    Hi there, I m using Benji Fisher s gVim suggestion to create menus: [snip] From the Edit menu of SimpleText: aunmenu &Edit.&Undo amenu 20.310
    Message 1 of 3 , Mar 30, 2004
    • 0 Attachment
      Hi there,

      I'm using Benji Fisher's gVim suggestion to create menus:

      [snip]
      " From the Edit menu of SimpleText:
      aunmenu &Edit.&Undo
      amenu 20.310 &Edit.&Undo<Tab><D-z> <D-z>
      nmap <D-z> u
      vmap <D-z> <Esc><D-z>gv
      imap <D-z> <C-O><D-z>
      cmap <D-z> <C-C><D-z>
      omap <D-z> <Esc><D-z>
      vunmenu &Edit.Cu&t
      vmenu 20.340 &Edit.Cu&t<Tab><D-x> <D-x>
      vmap <D-x> "+x
      vunmenu &Edit.&Copy
      vmenu 20.350 &Edit.&Copy<Tab><D-c> <D-c>
      vmap <D-c> "+y
      cunmenu &Edit.&Copy
      cmenu 20.350 &Edit.&Copy<Tab><D-c> <D-c>
      cmap <D-c> <C-Y>
      [snap]

      but unlike the cut shortcut C-x, the one for copy, C-c, is not
      displayed in the menu, but nonetheless functional. Any idea why it's
      not displayed?

      -Andre
    • Rain Dog
      ... Shouldn t that be vunmenu &Edit.&Copy cunmenu &Edit.&Copy vmenu 20.350 &Edit.&Copy vmap +y cmenu 20.350 &Edit.&Copy
      Message 2 of 3 , Apr 5, 2004
      • 0 Attachment
        On Tuesday, March 30, 2004, at 11:39 AM, Andre Berger wrote:

        > vunmenu &Edit.Cu&t
        > vmenu 20.340 &Edit.Cu&t<Tab><D-x> <D-x>
        > vmap <D-x> "+x
        > vunmenu &Edit.&Copy
        > vmenu 20.350 &Edit.&Copy<Tab><D-c> <D-c>
        > vmap <D-c> "+y
        > cunmenu &Edit.&Copy
        > cmenu 20.350 &Edit.&Copy<Tab><D-c> <D-c>
        > cmap <D-c> <C-Y>
        >
        > but unlike the cut shortcut C-x, the one for copy, C-c, is not
        > displayed in the menu, but nonetheless functional. Any idea why it's
        > not displayed?

        Shouldn't that be

        vunmenu &Edit.&Copy
        cunmenu &Edit.&Copy
        vmenu 20.350 &Edit.&Copy<Tab><D-c> <D-c>
        vmap <D-c> "+y
        cmenu 20.350 &Edit.&Copy<Tab><D-c> <D-c>
        cmap <D-c> <C-Y>

        so that the existing menu item is completely removed before
        the new one, with its new shortcut, is added?
      • Andre Berger
        ... That works great, thanks!! -Andre
        Message 3 of 3 , Apr 6, 2004
        • 0 Attachment
          * Rain Dog <p.cucka@...>, 2004-04-06 10:00 +0200:
          > On Tuesday, March 30, 2004, at 11:39 AM, Andre Berger wrote:
          >
          > > vunmenu &Edit.Cu&t
          > > vmenu 20.340 &Edit.Cu&t<Tab><D-x> <D-x>
          > > vmap <D-x> "+x
          > > vunmenu &Edit.&Copy
          > > vmenu 20.350 &Edit.&Copy<Tab><D-c> <D-c>
          > > vmap <D-c> "+y
          > > cunmenu &Edit.&Copy
          > > cmenu 20.350 &Edit.&Copy<Tab><D-c> <D-c>
          > > cmap <D-c> <C-Y>
          > >
          > >but unlike the cut shortcut C-x, the one for copy, C-c, is not
          > >displayed in the menu, but nonetheless functional. Any idea why it's
          > >not displayed?
          >
          > Shouldn't that be
          >
          > vunmenu &Edit.&Copy
          > cunmenu &Edit.&Copy
          > vmenu 20.350 &Edit.&Copy<Tab><D-c> <D-c>
          > vmap <D-c> "+y
          > cmenu 20.350 &Edit.&Copy<Tab><D-c> <D-c>
          > cmap <D-c> <C-Y>
          >
          > so that the existing menu item is completely removed before
          > the new one, with its new shortcut, is added?

          That works great, thanks!!

          -Andre
        Your message has been successfully submitted and would be delivered to recipients shortly.