1.Enviroment
Env: vim+zsh+iTerm2 on Mac OSX 10.9.2. (Same problems in vim+terminal+bash on Mac OSX 10.9.2)
2. Mapping Problems
Here are mapping problems list(You can chose any of them to anwser).
My vim could not get some shortcuts: <A-Left|Right|..>
,<D-char>
.
2.1 <A-Left|Right|UP|Down
In iTerm2 , hitting <A-Left|...
will result in(iTerm2 doesn't bind any shortcut for them.):
<A-Up> print 'A' with a sound alert.
<A-Down> print 'B' with a sound alert.
<A-Left> print 'D' with a sound alert.
<A-Down> print 'C' with a sound alert.
In vim, <A-Left|...
behave same as <Left><Right><Up><Down>
in insert mode , normal mode, visual mdoe and Ex Mode, etc. Could I map them <A-Left|..>
?
2.2 <D-char>
Some keys about <D-char>
are iTerms's own hotkeys, such as :
<D-q>
will quit iTerm2<D-w>
will close current tab in iTerm2
On the other hand, the other keys such as <D-s>
are not hotkey, and do not print any char in vim and terminal. Is it possible to map them in vim?
<C-A-char>
. 3. Mapping problem about<C-q>
in terminal