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

Intl. Keyboard: Add remapping support for caret and hints mode #571

Open
javiertury opened this issue Aug 8, 2016 · 0 comments
Open

Intl. Keyboard: Add remapping support for caret and hints mode #571

javiertury opened this issue Aug 8, 2016 · 0 comments

Comments

@javiertury
Copy link

@javiertury javiertury commented Aug 8, 2016

Issue type:
  • Feature request
Description:

Add remapping support for caret and hints mode. On international keyboards the Esc key is way up there and pressing <C-[> requires pressing 3 keys in an uncomfortable way: Crtl, Alt Gr and ```.

Vim wiki offers some solutions:
http://vim.wikia.com/wiki/Avoid_the_escape_key

The easiest and most widespread solution is to press simultaneously Alt plus any normal mode key which will exit the current mode to normal mode and perform the action. For example while on insert mode <A-j> will switch to normal and move down.The other alternatives involve remapping.

However vimperator doesn't implement the Alt combo and in order to enable it for the directional keys, remapping has to be done as follows:

map <A-h>  <Esc>h
map <A-j>  <Esc>j
map <A-k>  <Esc>k
map <A-l>  <Esc>l

nmap <A-h>  h
nmap <A-j>  j
nmap <A-k>  k
nmap <A-l>  l

vmap <A-h>  <Esc>h
vmap <A-j>  <Esc>j
vmap <A-k>  <Esc>k
vmap <A-l>  <Esc>l

imap <A-h>  <Esc>h
imap <A-j>  <Esc>j
imap <A-k>  <Esc>k
imap <A-l>  <Esc>l

cmap <A-h>  <Esc>h
cmap <A-j>  <Esc>j
cmap <A-k>  <Esc>k
cmap <A-l>  <Esc>l

The problem I have with this configuration is that it doesn't work on caret and hints mode. Moreover if you enter visual mode from caret mode the keys aren't remapped either.

Regarding any other solution from the Vim wiki, they need to remap on caret and hints mode as well.

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

Successfully merging a pull request may close this issue.

None yet
2 participants