jbssm
jbssm

Reputation: 7151

Ideavim plugin for Intellij keymaps

I'm trying to get the Ideavim plugin to work correctly in Intellij IDEA and PyCharm, but the documentation is rather poor and I can't configure it properly.

For starters, the documentation tells me to choose the VIM keymap under Preferences/Keymap but there is no VIM keymap there before or after installing Ideavim.

Also, according to the documentation some plugins are suposed to be supported (altough the documentation doesn't say wich and only talks about vim-surreound), but even after putting the line in ~/.ideavimrc:

set vim-surround

The vim-surround commands simply don't work.

Also, where are the actions/commands list that can be used in ~/.ideavimrc to map some keybinding.

For instance, imagine I want to remap <leader> f s to save my file. Where do I find out the commands available so that I can put something like in ~/.ideavimrc:

let mapleader = " "
nmap <LEADER>fs :SaveFile<CR>

Upvotes: 2

Views: 2458

Answers (1)

Andrey Vlasovskikh
Andrey Vlasovskikh

Reputation: 16838

Vim-surround emulation is not released yet. You can download CI builds that include vim-surround support using a link at https://github.com/JetBrains/ideavim.

In order to enable vim-surround, use:

set surround

You can list all the IDE commands available for mapping using :actionlist. See the documentation at the GitHub page.

Update: IdeaVim 0.46 supports vim-surround commands.

Upvotes: 8

Related Questions