Skip to content

getchar() can not detect cmd-v on MacOS #1066

Open

Description

@Yggdroot

Activity

  1. ychin commented on Aug 11, 2020

    @ychin
    Member

    Per the comment in the other issue (vim/vim#5349 (comment)), MacVim currently hard-binds Cmd-V to a menu key, and as such you cannot use it in Vim mapping unless you unmap it from the menu. Does that work for you? Or are you asking for a way to bypass that completely?

  2. added
    InputIssues related to keyboard or other types of input
    on Aug 11, 2020
  3. Yggdroot commented on Aug 17, 2020

    @Yggdroot
    Author

    I don't know how to unmap it from the menu. It would be preferred if there is a way to bypass that completely.

  4. ychin commented on Aug 17, 2020

    @ychin
    Member

    You can look up the documentation by doing :help macmenu, under example 4:

    4. Free up Cmd-t and remap it to open a file browser in a split view: >
    	macm File.New\ Tab key=<nop>
    	nmap <D-t> :sp .<CR>
    

    You will need to do this for each menu item you care to unmap for.

  5. added this to the Release 175 milestone on Aug 9, 2022
  6. modified the milestones: Release 175, Release 176 on Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    InputIssues related to keyboard or other types of input

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions