On Fri, Aug 5, 2016 at 11:43 AM, Christian Brabandt <[email protected]> wrote: > Hi 李哲! > > On Fr, 05 Aug 2016, 李哲 wrote: > >> nnoremap <C-A-h> <C-w>h >> vnoremap <C-A-h> <C-w>h >> nnoremap <C-A-l> <C-w>l >> vnoremap <C-A-l> <C-w>l >> >> >> >> <C-w>h used to move to the left window, >> >> >> but the key map dosent work , when I press ctrl + alt + h at the same time > > Is that in a terminal or Gvim? Historically, capturing correct Ctrl / > Alt (together with Shift key) is hard to capture reliably in the > terminal. Therefore, I usually tend to avoid those keys. Actually, I am > not even sure, the <c-a-l> notation is even correct recognized by Vim. > > Here is some more information: > http://vi.stackexchange.com/a/9073/71 > https://vimhelp.appspot.com/vim_faq.txt.html#faq-20.4 > https://vimhelp.appspot.com/vim_faq.txt.html#faq-20.5 > > Best, > Christian > -- > Iefschlag, Herbert: > Unglücksbote >
<C-A-H>, or maybe better <M-C-H>, ought to mean 0x88 (Ctrl-H with the top bit set); but it is hard to capture in a terminal. OTOH it is known that with a letter, Shift is absorbed by Ctrl: <C-A> = <C-a> = <C-S-a> = 0x01. You might have more success with the F keys, with a few exceptions (F1 is Help, F10 is Menu, possibly the terminal's menu if it has one, and in a terminal emulator in a GUI display, F11 may toggle Maximize/Unmaximize and not be passed to Vim). Shift-Fn and/or Ctrl-Fn may or may not get passed to Vim and may or may not appear different than just Fn, depending on terminal and displaymanager settings. Best regards, Tony. -- -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
