While doing TDD I switch back and forth between windows often. I would like to reduce the number of keystrokes for this. I have tried both:
inoremap <C-w> <ESC><C-w>
imap <C-w> <ESC><C-w>
I was thinking with this mapping I could do
<C-w>h and switch directly from the right window to the left window, but it doesn't work, it gets to normal mode but leaves me in the right window. Can anyone explain why this doesn't work and how I might make it work?