27 Jul
2012
27 Jul
'12
3:57 a.m.
Hi Petch, On Fri, Jul 27 2012 (04:54), Petch Wannissorn <[email protected]> wrote:
I notice that ':vs' splits screen vertically and C-W, H/L switches to the left/right buffers and they work wonder. I would like to know what is the proper way to rebind the buffer switching? I.e. I just want to do C-H instead of C-W, H to switch to the left pane.
First, terminology: You want to switch the window not the buffer. To use the binding only in normal state you can use (define-key evil-normal-state-map (kbd "C-S-h") 'evil-window-left) and analogously (define-key evil-normal-state-map (kbd "C-S-l") 'evil-window-right) Michael