Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

map global insert <c-c> does not work #2742

Open
vbauerster opened this issue Feb 17, 2019 · 5 comments
Open

map global insert <c-c> does not work #2742

vbauerster opened this issue Feb 17, 2019 · 5 comments

Comments

@vbauerster
Copy link
Contributor

Following map does not work in insert mode:

map global insert '<c-c>' '<a-;>'

however this one works:

map global insert '<c-y>' '<a-;>'
@andreyorst
Copy link
Contributor

Basically, any key that can't be inserted via Ctrl+v Key can not be mapped.

@vbauerster
Copy link
Contributor Author

Is it limitation of ncurses? Though it won't help, but in neovim I was able to map <c-c> in insert mode.

@andreyorst
Copy link
Contributor

andreyorst commented Feb 20, 2019

There were some discussions about handling inputs, you may find interesting these particular ones:
#2554
#2209

AFAIK Neovim uses libtermkey to handle input.

@ca-d
Copy link

ca-d commented May 5, 2020

Basically, any key that can't be inserted via Ctrl+v Key can not be mapped.

I don't understand the meaning of this, since for me <c-v> <c-c> yields ^C.

@andreyorst
Copy link
Contributor

andreyorst commented May 5, 2020

Basically, any key that can't be inserted via Ctrl+v Key can not be mapped.

I don't understand the meaning of this, since for me <c-v> <c-c> yields ^C.

Where? In the shell - sure is, in Kakoune insert mode it is not. Well, at least for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants