# Neovim Configuration Leader key: `` ## Files & Buffers | Key | Action | |-----|--------| | `ex` | Toggle file tree | | `fs` | Save file | | `ff` | Find file | | `fr` | Find recent file | | `sf` | Search git files | | `bb` | List buffers | | `` | List buffers | | `bd` | Delete buffer | | `.` | Scratch buffer | ## Search | Key | Action | |-----|--------| | `sg` | Search grep | | `sw` | Search grep word | | `sb` | Buffer lines | | `sB` | Grep open buffers | | `:` | Command history | ## LSP | Key | Action | |-----|--------| | `gd` | Goto definition | | `gD` | Goto declaration | | `gr` | References | | `gI` | Goto implementation | | `gy` | Goto type definition | | `gai` | Incoming calls | | `gao` | Outgoing calls | | `K` | Hover documentation | | `rn` | Rename symbol | | `ca` | Code action | | `d` | Show diagnostic | | `[d` / `]d` | Previous / next diagnostic | | `ls` | LSP symbols | | `lS` | LSP workspace symbols | ## Git | Key | Action | |-----|--------| | `gg` | Open Neogit | | `gb` | Git branches | | `gl` | Git log | | `gL` | Git log (file) | | `gs` | Git status | | `gS` | Git stash | | `gd` | Git diff (hunks) | | `gi` | GitHub issues (open) | | `gI` | GitHub issues (all) | | `gp` | GitHub PRs (open) | | `gP` | GitHub PRs (all) | ## Grapple (Harpoon-style marks) | Key | Action | |-----|--------| | `ma` | Toggle tag | | `mm` | Tags menu | | `m1-4` | Select tag 1-4 | | `mn` | Next tag | | `mp` | Previous tag | | `mga` | Add global tag | | `mgm` | Global tags menu | ## Claude Code | Key | Action | |-----|--------| | `ac` | Toggle Claude | | `af` | Focus Claude | | `ar` | Resume Claude | | `aC` | Continue Claude | | `am` | Select Claude model | | `ab` | Add current buffer | | `as` | Send to Claude (visual) | | `aa` | Accept diff | | `ad` | Deny diff | ## Code / Config | Key | Action | |-----|--------| | `cc` | Compile | | `cC` | Recompile | | `cf` | Format buffer | | `cr` | Reload config | | `ce` | Edit config | | `ch` | Check health | ## Windows | Key | Action | |-----|--------| | `wh/j/k/l` | Navigate windows | | `ws` | Split horizontal | | `wv` | Split vertical | | `wq` | Close window | | `` | Move to tmux pane | ## Quickfix | Key | Action | |-----|--------| | `qq` | Open/focus quickfix | | `ql` | Toggle loclist | | `>` | Expand quickfix context | | `<` | Collapse quickfix context | ## Utilities | Key | Action | |-----|--------| | `ut` | Toggle undotree | | `zz` | Toggle zen mode | | `zm` | Toggle zoom | ## R (in R files) | Key | Action | |-----|--------| | `rs` | Start R | | `rq` | Close R | | `rl` | Send line to R | | `rs` | Send selection to R (visual) | | `rf` | Send file to R | | `ro` | Show function args | | `rh` | R help | ## Treesitter ### Incremental Selection Select code based on AST nodes - expand or shrink selection intelligently. | Key | Action | |-----|--------| | `vv` | Start treesitter selection | | `` | Expand to larger node | | `` | Shrink to smaller node | | `` | Expand to full scope | ### Text Objects Use with operators like `v` (visual), `d` (delete), `c` (change), `y` (yank). | Key | Description | |-----|-------------| | `af` / `if` | Outer / inner function | | `ac` / `ic` | Outer / inner class | | `aa` / `ia` | Outer / inner argument | | `ai` / `ii` | Outer / inner conditional | | `al` / `il` | Outer / inner loop | | `ab` / `ib` | Outer / inner block | Examples: - `vaf` - select entire function - `dif` - delete function body - `caa` - change an argument - `yic` - yank inner class ### Movement Jump between functions, classes, and arguments. | Key | Action | |-----|--------| | `]f` / `[f` | Next / previous function start | | `]F` / `[F` | Next / previous function end | | `]c` / `[c` | Next / previous class start | | `]C` / `[C` | Next / previous class end | | `]a` / `[a` | Next / previous argument | ### Swap | Key | Action | |-----|--------| | `a` | Swap argument with next | | `A` | Swap argument with previous | ## Git Rebase (in gitrebase files) | Key | Action | |-----|--------| | `p` | Pick | | `r` | Reword | | `e` | Edit | | `s` | Squash | | `f` | Fixup | | `d` | Drop | | `x` | Exec | | `` / `` | Move line down | | `` / `` | Move line up | ## Terminal | Key | Action | |-----|--------| | `` | Exit terminal mode |