How do I bind one single key to cycle through the windows? For example, each time I want to switch a window, I have to click ctrl-a (default was ctrl-c) then use arrow key up/down/left/right to switch. Can I have just one key that does ctrl-a + switching the window? I was thinking to bind it with the tab key, but I couldn't resolve the issue yet.

1 Answer 1


Just create a key binding as you would do for any other command. Here I present one mapping for normal mode and one mapping for insert mode, both using tab.

nnoremap <tab> :wincmd w<cr>
inoremap <tab> <c-o>:wincmd w<cr>

For more information and inspiration for further custimization see :h wincmd.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .