# 🚀 Neovim Keybindings Cheatsheet **Leader Key:** `` ## 📝 General & Basic Navigation | Key | Mode | Action | Description | |-----|------|--------|-------------| | `` | n | Leader Key | Main leader key | | `;` | n | `:` | Enter command mode | | `jk` | i | `` | Exit insert mode | | `` | n | Clear highlights | Remove search highlights | | `` | n | Save file | Save current file | | `` | n | Copy whole file | Copy entire file to clipboard | ## 🔢 Line Numbers | Key | Mode | Action | Description | |-----|------|--------|-------------| | `n` | n | Toggle line numbers | Show/hide line numbers | | `rn` | n | Toggle relative numbers | Show/hide relative line numbers | ## 🚪 Window Navigation | Key | Mode | Action | Description | |-----|------|--------|-------------| | `` | n | Switch window left | Move to left window | | `` | n | Switch window right | Move to right window | | `` | n | Switch window down | Move to window below | | `` | n | Switch window up | Move to window above | ## ✏️ Insert Mode Navigation | Key | Mode | Action | Description | |-----|------|--------|-------------| | `` | i | Move to beginning of line | Go to start of line | | `` | i | Move to end of line | Go to end of line | | `` | i | Move left | Move cursor left | | `` | i | Move right | Move cursor right | | `` | i | Move down | Move cursor down | | `` | i | Move up | Move cursor up | ## 📂 Buffer Management (Tabufline) | Key | Mode | Action | Description | |-----|------|--------|-------------| | `b` | n | New buffer | Create new empty buffer | | `` | n | Next buffer | Switch to next buffer | | `` | n | Previous buffer | Switch to previous buffer | | `x` | n | Close buffer | Close current buffer | ## 💬 Comments | Key | Mode | Action | Description | |-----|------|--------|-------------| | `/` | n | Toggle comment | Comment/uncomment current line | | `/` | v | Toggle comment | Comment/uncomment selected lines | ## 🌳 File Explorer (NvimTree) | Key | Mode | Action | Description | |-----|------|--------|-------------| | `` | n | Toggle NvimTree | Open/close file explorer | | `e` | n | Focus NvimTree | Focus on file explorer | ## 🔍 Telescope (Fuzzy Finder) ### File Operations | Key | Mode | Action | Description | |-----|------|--------|-------------| | `ff` | n | Find files | Search for files | | `fa` | n | Find all files | Search including hidden/ignored files | | `fo` | n | Find old files | Search recent files | | `fw` | n | Live grep | Search text in files | | `fb` | n | Find buffers | Search open buffers | | `fz` | n | Current buffer fuzzy find | Search in current buffer | ### Git Operations | Key | Mode | Action | Description | |-----|------|--------|-------------| | `cm` | n | Git commits | Browse git commits | | `gt` | n | Git status | View git status | ### Other Telescope Features | Key | Mode | Action | Description | |-----|------|--------|-------------| | `fh` | n | Help tags | Search help documentation | | `ma` | n | Find marks | Search vim marks | | `pt` | n | Pick terminal | Search hidden terminals | | `th` | n | NvChad themes | Browse and select themes | ## 🖥️ Terminal Management ### Terminal Creation | Key | Mode | Action | Description | |-----|------|--------|-------------| | `h` | n | New horizontal terminal | Open terminal horizontally | | `v` | n | New vertical terminal | Open terminal vertically | ### Terminal Toggles | Key | Mode | Action | Description | |-----|------|--------|-------------| | `` | n,t | Toggle vertical terminal | Toggle vertical terminal | | `` | n,t | Toggle horizontal terminal | Toggle horizontal terminal | | `` | n,t | Toggle floating terminal | Toggle floating terminal | | `` | t | Escape terminal mode | Exit terminal mode | ## 🎨 Formatting & Code | Key | Mode | Action | Description | |-----|------|--------|-------------| | `fm` | n,x | Format file | Format current file/selection | ## 🩺 LSP (Language Server Protocol) | Key | Mode | Action | Description | |-----|------|--------|-------------| | `ds` | n | Diagnostic loclist | Show diagnostics in location list | ## 🤖 GitHub Copilot Chat ### Help & Prompts | Key | Mode | Action | Description | |-----|------|--------|-------------| | `cch` | n | Help actions | Show Copilot help actions | | `ccp` | n,x | Prompt actions | Show Copilot prompt actions | ### Code Operations | Key | Mode | Action | Description | |-----|------|--------|-------------| | `cce` | n | Explain code | Ask Copilot to explain code | | `cct` | n | Generate tests | Generate unit tests | | `ccr` | n | Review code | Get code review | | `ccR` | n | Refactor code | Refactor code | | `ccn` | n | Better naming | Suggest better names | ### Chat Operations | Key | Mode | Action | Description | |-----|------|--------|-------------| | `cci` | n | Ask input | Custom Copilot question | | `ccq` | n | Quick chat | Quick chat with buffer | | `ccv` | x | Visual chat | Chat with selected code | | `ccx` | x | Inline chat | Inline chat with selection | | `ccv` | n | Toggle chat | Toggle Copilot chat window | ### Git Integration | Key | Mode | Action | Description | |-----|------|--------|-------------| | `ccm` | n | Generate commit message | Commit message for all changes | | `ccM` | n | Generate staged commit | Commit message for staged changes | ### Utility | Key | Mode | Action | Description | |-----|------|--------|-------------| | `ccd` | n | Debug info | Show Copilot debug info | | `ccf` | n | Fix diagnostic | Fix diagnostic issues | | `ccl` | n | Clear history | Clear chat history | ## ❓ Help & Documentation | Key | Mode | Action | Description | |-----|------|--------|-------------| | `ch` | n | Toggle cheatsheet | Show/hide NvChad cheatsheet | | `wK` | n | All keymaps | Show all available keymaps | | `wk` | n | Query keymaps | Search for specific keymaps | --- ## 📚 Mode Legend - **n** = Normal mode - **i** = Insert mode - **v** = Visual mode - **x** = Visual selection mode - **t** = Terminal mode ## 🔧 Custom Keybindings Notes - Your leader key is set to `` (spacebar) - `jk` in insert mode acts as `` for quick mode switching - `;` in normal mode enters command mode (equivalent to `:`) - You have GitHub Copilot integration with extensive chat features ## 💡 Pro Tips 1. Use `th` to quickly switch between themes 2. `fa` finds ALL files including hidden ones 3. Use `fw` for project-wide text search 4. Copilot chat (`cc*`) commands work great for code assistance 5. Terminal toggles (``, ``, ``) are accessible from both normal and terminal modes