Search code examples
intellij-ideaideavim

Navigating between splits


I wanted to settup vim-tmux-navigation like navigation on intellij IDE and only way to settup this is from IdeaVim so my configuration in settings -> keymap looks like this:

  • VimWindowDown_____ alt J
  • VimWindowLeft______ alt L
  • VimWindowRight_____alt H
  • VimWindowUp_______ alt K

But when I split the windows it's not working.... Is this a bug or I'm missing some stuff?

Oh and don't suggest me switcher for my problem...


Solution

  • The best place for setting up custom keys for Vim actions is the ~/.ideavimrc file. You can use the standard Vim map/nmap/noremap/imap/... commands there. For example:

    nmap <A-J> <C-W>j
    

    For potential keymap conflicts between the Vim emulation and the IDE see Settings | Vim Emulation.

    Chaning Vim actions via Settings | Keymap is not recommended.