Friday, November 10, 2017

Re: Help needed on terminal mappings

Speaking of <A-Arrows>... My terminal (iTerm.app on macOS) sure does distinguish <A-Left> from <Left> (cat reports ^[[1;9D for the former, and ^[[D for the latter), my Vim does understand those keys, too, and I have the following in my $VIMRC (which works perfectly):

```
" go to the previous word
nnoremap <Esc>[1;9D <S-Left>
inoremap <Esc>[1;9D <S-Left>
xnoremap <Esc>[1;9D <S-Left>
cnoremap <Esc>[1;9D <S-Left>
" go to the next word
nnoremap <Esc>[1;9C <S-Right>
inoremap <Esc>[1;9C <S-Right>
xnoremap <Esc>[1;9C <S-Right>
cnoremap <Esc>[1;9C <S-Right>
```

But unfortunately :terminal fails to separate those, and cat reports ^[[D for both <A-Left> and <Left>.

Having that in mind, the solution you provided allows to map <C-Arrows> or <S-Arrows> but not <A-Arrows>. What do you think, is there any way to fix that?


Thanks,


--
ds

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment