Skip to content

Instantly share code, notes, and snippets.

@FanchGadjo
Created March 11, 2026 23:40
Show Gist options
  • Select an option

  • Save FanchGadjo/a5661ff0e1106ac868061ef1068f7f48 to your computer and use it in GitHub Desktop.

Select an option

Save FanchGadjo/a5661ff0e1106ac868061ef1068f7f48 to your computer and use it in GitHub Desktop.
lazy-idea (IdeaVim) — Printable Vim Cheatsheet

lazy-idea (IdeaVim) — Printable Vim Cheatsheet (shortcuts + “aliases”/mappings)

Source repo: cufarvid/lazy-idea
These are IdeaVim mappings that emulate LazyVim-style keybinds inside JetBrains IDEs.

Print tips: use mono font, 2 columns, small margins.


Legend

  • <leader> = your IdeaVim leader key (set in modules/settings.vim, not shown in the search snippets)
  • Modes: N normal, I insert, V visual, X visual-select, O operator-pending
  • “Alias” here means custom mapping (nmap/imap/vmap/etc.)

Non-leader navigation

Window navigation

Keys Mode Action
<C-h> N Go to left window
<C-j> N Go to lower window
<C-k> N Go to upper window
<C-l> N Go to right window
<C-Up> N Increase window height
<C-Down> N Decrease window height
<C-Left> N Decrease window width
<C-Right> N Increase window width

Buffer navigation

Keys Mode Action
<S-h> N Previous buffer/tab
<S-l> N Next buffer/tab
[b N Previous buffer/tab
]b N Next buffer/tab

Move lines

Keys Mode Action
<A-j> N/V/I Move line/selection down
<A-k> N/V/I Move line/selection up

Diagnostics / quickfix jumps

Keys Mode Action
[q N Previous quickfix/error
]q N Next quickfix/error
[d N Previous diagnostic
]d N Next diagnostic
[e N Previous error
]e N Next error
[w N Previous warning
]w N Next warning

TODO comment jumps (searches for TODO|FIX|HACK|WARN|PERF|NOTE|TEST:)

Keys Mode Action
[t N Previous TODO-style comment
]t N Next TODO-style comment

LSP-style code navigation

Keys Mode Action
gd N Goto definition (mapped to JetBrains “GotoDeclaration”)
gD N Goto declaration
gI N Goto implementation
gy N Goto type definition
gr N References / usages
gK N Signature help / parameter info
<C-k> I Signature help / parameter info

Reference list navigation

Keys Mode Action
]] N Next reference under caret usage
[[ N Previous reference under caret usage
<A-n> N Next reference under caret usage
<A-p> N Previous reference under caret usage

Leader “global” (misc)

Keys Mode Action
<leader><space> N Find files (root)
<leader>, N Buffers / switcher
<leader>/ N Grep (root)
<leader>: N Command history
<leader>K N :help <word-under-cursor>
<leader>l N “Lazy” (opens plugins/welcome)
<leader>L N LazyVim changelog / What’s New
<leader>qq N Quit all
<leader>e N NERDTree toggle (root)
<leader>E N NERDTree find (cwd)

b — Buffer

Keys Mode Action
<leader>bb N Switch to other buffer (<C-^>)
``` N Switch to other buffer (<C-^>)
<leader>bd N Delete buffer
<leader>bD N Delete buffer + window
<leader>bo N Delete other buffers
<leader>bl N Delete buffers to the left
<leader>br N Delete buffers to the right
<leader>bp N Toggle pin
<leader>bP N Delete non-pinned buffers
<leader>be N Buffer explorer (NERDTree toggle)

c — Code

Keys Mode Action
<leader>ca N/V Code action (refactoring menu)
<leader>cA N Source action / intentions
<leader>cr N Rename
<leader>cR N Rename file (special Rider mapping if Rider)
<leader>cf N/V Format
<leader>cd N Line diagnostics (problems tool window)
<leader>cl N (prints message: no equivalent mapping)
<leader>cc N (prints message: no equivalent mapping)
<leader>cC N (prints message: no equivalent mapping)

d — Debug

Keys Mode Action
<leader>da N Run with args (choose run configuration)
<leader>db N Toggle breakpoint
<leader>dB N Breakpoint condition
<leader>dc N Run/continue
<leader>dC N Run to cursor
<leader>dg N (prints message: not implemented)
<leader>di N Step into
<leader>dO N Step over
<leader>do N Step out
<leader>dP N Pause
<leader>dl N Debug last
<leader>dj N Down (mapped to next error)
<leader>dk N Up (mapped to previous error)
<leader>dp N Profiler tool window
<leader>dr N Toggle REPL (JShell.Console)
<leader>ds N (prints message: not implemented)
<leader>dt N Terminate / stop
<leader>dw N (prints message: no equivalent mapping)
<leader>de N/V Evaluate expression
<leader>du N Debug tool window

f — File / Find

Keys Mode Action
<leader>fb N Buffers (switcher)
<leader>fc N Find config file (GotoFile)
<leader>ff N Find files (root)
<leader>fF N Find files (cwd)
<leader>fg N Find git files (GotoFile)
<leader>fr N Recent (root)
<leader>fR N Recent (cwd)
<leader>fn N New file
<leader>fe N Explorer (NERDTree toggle)
<leader>fE N Explorer (NERDTree find)
<leader>ft N Terminal (root)
<leader>fT N Terminal (cwd)

g — Git

Keys Mode Action
<leader>gg N Git UI (root)
<leader>gG N Git UI (cwd)
<leader>gb N Git blame line
<leader>gB N Git browse/log (open)
<leader>gf N File history
<leader>gl N Git log
<leader>gL N Git log (cwd)
<leader>gc N Git log
<leader>gs N Git status (mapped to log)
<leader>ge N Git explorer (VCS tool window)

s — Search

Keys Mode Action
<leader>sc N Command history (:history)
<leader>sC N Commands (GotoAction)
<leader>sd N Diagnostics
<leader>sD N Workspace diagnostics
<leader>sg N Grep (root)
<leader>sG N Grep (cwd)
<leader>sh N Help pages
<leader>sH N Highlights
<leader>sj N Jumps / recent locations
<leader>sk N Keymaps (:map)
<leader>sl N Location list
<leader>sm N Marks (:marks)
<leader>sM N Man pages / documentation
<leader>sna N Notifications: all
<leader>snd N Notifications: dismiss all
<leader>snh N Notifications: history
<leader>so N Options / settings
<leader>sq N Quickfix list
<leader>sR N Resume (FindInPath)
<leader>ss N Goto symbol
<leader>sS N Goto symbol (workspace)
<leader>st N Todo
<leader>sT N Todo/Fix/Fixme
<leader>sw N/V Search word/selection (root)
<leader>sW N/V Search word/selection (cwd)

u — UI

Keys Mode Action
<leader>ur N Redraw / clear hlsearch
<leader>uf N (prints message: no equivalent mapping)
<leader>uF N (prints message: no equivalent mapping)
<leader>us N Toggle spelling
<leader>uw N Toggle wrap
<leader>uL N Toggle relative number
<leader>ud N Toggle diagnostics (opens problems tool window)
<leader>ul N Toggle line numbers
<leader>uc N (prints message: no equivalent mapping)
<leader>uT N (prints message: no equivalent mapping)
<leader>ub N Toggle dark background (scheme chooser)
<leader>uh N Toggle inlay hints
<leader>ui N Inspect pos (structure tool window)
<leader>uI N Inspect tree (structure tool window)
<leader>uC N Colorschemes
<leader>un N Dismiss all notifications

w — Windows

Keys Mode Action
<leader>- N Split below (<C-w>s)
` ` N
<leader>wd N Delete window (close content)
<leader>wm N Toggle “zoom” / distraction free mode

x — Diagnostics / Quickfix

Keys Mode Action
<leader>xl N Location list (problems tool window)
<leader>xq N Quickfix list (problems tool window)
<leader>xt N Todo (trouble-like)
<leader>xT N Todo/Fix/Fixme

— Tabs (JetBrains saved layouts)

Keys Mode Action
<leader><tab>l N Last tab
<leader><tab>o N Close other tabs (currently mapped to :<cr>)
<leader><tab>f N First tab
<leader><tab><tab> N New tab
<leader><tab>] N Next tab
<leader><tab>[ N Previous tab
<leader><tab>d N Close tab

Plugin / “alias” mappings

Commentary

Keys Mode Action
gcc (plugin) Toggle comment line
gc{motion} (plugin) Toggle comment for motion/text
gco N Add comment below
gcO N Add comment above

Surround (mini.surround-like)

Keys Mode Action
gsa N/X Add surrounding
gsd N Delete surrounding
gsr N Replace surrounding

EasyMotion (“flash”)

Keys Mode Action
s N/X/O Jump anywhere (easymotion-s)

Text objects

Keys Mode Action
ai X/O Indent object (remapped to behave like aI)
ag X/O Entire file (around)
ig X/O Entire file (inner)
aq / iq / ab (desc present) Extended text objects (mini-ai) (more mappings may exist beyond search snippets)

NERDTree (plugin key remaps inside the tree)

Key Context Action
l NERDTree Activate/open node
h NERDTree Close dir
a NERDTree New file
A NERDTree New dir
S NERDTree Open split
gS NERDTree Preview split
s NERDTree Open vsplit
gs NERDTree Preview vsplit
z NERDTree Close children

“Neovim default” tweaks in this config

Keys Mode Action
Y N Yank to end of line (y$)
Q N Repeat last macro (@@)
> V Indent and keep selection (>gv)
< V Outdent and keep selection (<gv)
<C-U> I Undo-break then delete to bol
<C-W> I Undo-break then delete word

Smart selection

Keys Mode Action
<C-Space> N/V Increment selection
<BS> V Decrement selection

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment