IdeaVim Cheatsheet

Leader key: Space. Example: <leader>ff means Space f f.

Navigation

KeyAction
gdGo to declaration
giGo to implementation
grFind usages
gbGo back
gBGo forward

Files And Search

KeyAction
Space ffGo to file
Space fsFind in project
Space faGo to IDE action
Space frRecent files
Space eSelect current file in project view

Code Actions

KeyAction
Space caShow intention actions / quick fix
Space cfReformat code
Space coOptimize imports
Space RRename symbol

Run And Debug

KeyAction
Space rrRun
Space ddDebug
Space dbToggle breakpoint

Tool Windows

KeyAction
Space ttOpen terminal
Space hhHide all tool windows

Completion

KeyAction
TabNext completion item
Shift+TabPrevious completion item

Surround

KeyExample / Meaning
cs"'Change "hello" to 'hello'
cs({Change (x) to { x }
ds"Delete surrounding quotes from "hello"
ysiw"Surround current word with quotes
yss)Surround the whole line with parentheses

Text Objects

KeyAction
ciqChange inside any quote
caqChange around any quote
cibChange inside any bracket
cabChange around any bracket
diqDelete inside any quote
dibDelete inside any bracket
viqSelect inside any quote
vibSelect inside any bracket

Multi-Cursor

KeyAction
Ctrl+nSelect next occurrence of word
g Ctrl+nSelect next occurrence, not whole word
Alt+nSelect all occurrences in file
Ctrl+xSkip current occurrence
Ctrl+pRemove current occurrence

Reload Config

Key / CommandAction
Ctrl+Shift+OReload ~/.ideavimrc from JetBrains
:source ~/.ideavimrcReload ~/.ideavimrc from Vim command mode

EasyMotion requires the JetBrains IdeaVim-EasyMotion and AceJump IDE plugins.