# Neovim Key Bindings Reference Leader key: `` ## General | Key | Mode | Description | |-----|------|-------------| | `` | Normal | Clear search highlights | | `q` | Normal | Open diagnostic quickfix list | | `-` | Normal | Open Oil.nvim file explorer | ## Window Navigation | Key | Mode | Description | |-----|------|-------------| | `` | Normal | Move focus to the left window | | `` | Normal | Move focus to the right window | | `` | Normal | Move focus to the lower window | | `` | Normal | Move focus to the upper window | ## Terminal | Key | Mode | Description | |-----|------|-------------| | `` | Terminal | Exit terminal mode | **Note:** There's no built-in keymap to open a terminal. Use these commands: - `:terminal` - Open terminal in current window - `:split \| terminal` - Open terminal in horizontal split - `:vsplit \| terminal` - Open terminal in vertical split ## Toggle Commands | Key | Mode | Description | |-----|------|-------------| | `ts` | Normal | Toggle spell check | | `tw` | Normal | Toggle word wrap | | `tc` | Normal | Toggle colorcolumn (80 chars) | | `tt` | Normal | Toggle textwidth auto-wrap | | `th` | Normal | Toggle LSP inlay hints (when supported) | ## Column Settings | Key | Mode | Description | |-----|------|-------------| | `cc` | Normal | Set colorcolumn width (prompts for value) | ## Text Editing | Key | Mode | Description | |-----|------|-------------| | `` | Normal | Toggle comment on current line | | `` | Visual | Toggle comment on selected lines | | `f` | Normal/Visual | Format buffer/selection | | `z/` | Normal | Find synonyms for word under cursor (thesaurus) | ## Search (Telescope) | Key | Mode | Description | |-----|------|-------------| | `sf` | Normal | Search files | | `sg` | Normal | Search by grep (live grep) | | `sw` | Normal | Search current word | | `sh` | Normal | Search help documentation | | `sk` | Normal | Search keymaps | | `ss` | Normal | Search select Telescope pickers | | `sd` | Normal | Search diagnostics | | `sr` | Normal | Resume last search | | `s.` | Normal | Search recent files | | `sn` | Normal | Search Neovim config files | | `s/` | Normal | Search in open files | | `/` | Normal | Fuzzy search in current buffer | | `` | Normal | Find existing buffers | ## LSP (Language Server Protocol) These keymaps are only available when an LSP is attached to the buffer. | Key | Mode | Description | |-----|------|-------------| | `grn` | Normal | Rename symbol | | `gra` | Normal/Visual | Code action | | `grr` | Normal | Find references | | `grd` | Normal | Go to definition | | `grD` | Normal | Go to declaration | | `gri` | Normal | Go to implementation | | `grt` | Normal | Go to type definition | | `gO` | Normal | Document symbols | | `gW` | Normal | Workspace symbols | **LSP Navigation Tip:** After jumping to a definition with `grd`, press `` to jump back. ## AI Assistants ### Claude Code | Key | Mode | Description | |-----|------|-------------| | `` | Normal/Terminal | Toggle Claude Code terminal | | `cC` | Normal | Continue last conversation | | `cV` | Normal | Verbose mode | ### GitHub Copilot | Key | Mode | Description | |-----|------|-------------| | `` | Insert | Accept Copilot suggestion | **Commands:** - `:CopilotChat` - Open Copilot chat - `:CopilotChatModels` - View available models ## Godot Integration **Commands:** - `:GodotDebug` - Start debugging - `:GodotBreakAtCursor` - Set breakpoint at cursor - `:GodotStep` - Step through debugger - `:GodotQuit` - Quit debugger - `:GodotContinue` - Continue execution ## Plugin Management **Commands:** - `:Lazy` - Open lazy.nvim UI - `:Lazy update` - Update all plugins - `:Lazy sync` - Install missing and update existing plugins - `:Lazy clean` - Remove unused plugins ## LSP & Tools Management **Commands:** - `:Mason` - Open Mason UI to manage LSP servers - `:checkhealth` - Run health checks - `:checkhealth lsp` - Check LSP configuration ## Autocompletion (Blink.cmp) In insert mode during completion: | Key | Description | |-----|-------------| | `` | Accept completion (default preset) | | `` / `` | Move to next/previous snippet field | | `` | Open menu or toggle documentation | | `` / `` | Select next/previous item | | `` / `` | Select next/previous item | | `` | Hide menu | | `` | Toggle signature help | ## Useful Neovim Commands | Command | Description | |---------|-------------| | `:Tutor` | Interactive Neovim tutorial | | `:help` | Open help documentation | | `:ConformInfo` | View formatting configuration | | `:Thesaurus` | Manual thesaurus lookup | ## Tips 1. Press `` and wait briefly to see all available leader key combinations (via which-key) 2. In Telescope search, press `` (insert mode) or `?` (normal mode) to see available keymaps 3. The colorscheme is Catppuccin Macchiato (change at init.lua:1043) 4. Format-on-save is enabled by default (except for C/C++)