# Neovim Keybindings Reference This document provides a comprehensive reference for all keybindings in your Neovim configuration. ## Table of Contents - [General Keybindings](#general-keybindings) - [Navigation](#navigation) - [Editing](#editing) - [UI & Terminal](#ui--terminal) - [Plugin Keybindings](#plugin-keybindings) - [Telescope](#telescope) - [Bufferline](#bufferline) - [Harpoon](#harpoon) - [Git](#git) - [Copilot](#copilot) - [Neorg](#neorg) - [LeetCode](#leetcode) ## General Keybindings | Keybinding | Mode | Description | | ----------- | ------ | ----------------------- | | `w` | Normal | Save file | | `q` | Normal | Quit | | `Q` | Normal | Force quit all | | `W` | Normal | Save and quit | | `/` | Normal | Clear search highlights | | `` | Normal | Clear highlights | ## Navigation ### Window Navigation | Keybinding | Mode | Description | | ---------- | ------ | -------------------------- | | `` | Normal | Move focus to left window | | `` | Normal | Move focus to down window | | `` | Normal | Move focus to up window | | `` | Normal | Move focus to right window | ### Window Management | Keybinding | Mode | Description | | ------------ | ------ | ------------------------- | | `wv` | Normal | Split window vertically | | `ws` | Normal | Split window horizontally | | `wq` | Normal | Close current window | | `wo` | Normal | Close other windows | | `` | Normal | Increase window height | | `` | Normal | Decrease window height | | `` | Normal | Decrease window width | | `` | Normal | Increase window width | ### Tab Management | Keybinding | Mode | Description | | ------------ | ------ | ----------------- | | `tn` | Normal | New tab | | `to` | Normal | New tab with file | | `tc` | Normal | Close tab | | `` | Normal | Next tab | | `` | Normal | Previous tab | ### Buffer Navigation | Keybinding | Mode | Description | | ------------------ | ------ | --------------- | | `` | Normal | Find buffers | | `bd` | Normal | Delete buffer | | `bn` | Normal | Next buffer | | `bp` | Normal | Previous buffer | ## Editing | Keybinding | Mode | Description | | ---------- | ------ | ---------------------------- | | `` | Normal | Move line down | | `` | Normal | Move line up | | `` | Visual | Move selection down | | `` | Visual | Move selection up | | `<` | Visual | Decrease indent and reselect | | `>` | Visual | Increase indent and reselect | ## UI & Terminal | Keybinding | Mode | Description | | ------------ | -------- | -------------------------- | | `e` | Normal | Open file explorer | | `tt` | Normal | Toggle terminal | | `tf` | Normal | Toggle floating terminal | | `th` | Normal | Toggle horizontal terminal | | `tv` | Normal | Toggle vertical terminal | | `` | Terminal | Exit terminal mode | ### Diagnostics | Keybinding | Mode | Description | | ------------ | ------ | --------------------- | | `xd` | Normal | Open diagnostic float | | `xl` | Normal | Open diagnostic list | | `[d` | Normal | Previous diagnostic | | `]d` | Normal | Next diagnostic | ## Plugin Keybindings ### Telescope | Keybinding | Mode | Description | | ------------- | ------ | ------------------- | | `ff` | Normal | Find files | | `fg` | Normal | Live grep | | `fb` | Normal | Find buffers | | `fh` | Normal | Help tags | | `fr` | Normal | Recent files | | `fc` | Normal | Grep current string | | `fk` | Normal | Find keymaps | | `fgc` | Normal | Git commits | | `fgb` | Normal | Git branches | | `fgs` | Normal | Git status | ### Bufferline | Keybinding | Mode | Description | | ------------------ | ------ | -------------------- | | `bp` | Normal | Pick buffer | | `bc` | Normal | Pick buffer to close | | `bh` | Normal | Previous buffer | | `bl` | Normal | Next buffer | | `bH` | Normal | Move buffer left | | `bL` | Normal | Move buffer right | | `` to `` | Normal | Go to buffer 1-9 | ### Harpoon | Keybinding | Mode | Description | | ---------------------------- | ------ | ------------------------ | | `ha` | Normal | Add file to harpoon | | `hm` | Normal | Open harpoon menu | | `h1` to `h9` | Normal | Jump to harpoon file 1-9 | | `` | Normal | Next harpoon file | | `` | Normal | Previous harpoon file | ### Git | Keybinding | Mode | Description | | ------------ | ------ | -------------------- | | `gg` | Normal | Open LazyGit | | `gc` | Normal | Open LazyGit config | | `gf` | Normal | LazyGit current file | ### Copilot | Keybinding | Mode | Description | | ------------ | ------ | -------------------------------- | | `cc` | Normal | Copilot chat | | `ce` | Normal | Explain code | | `cf` | Normal | Fix code | | `co` | Normal | Optimize code | | `cd` | Normal | Generate documentation | | `ct` | Normal | Generate tests | | `cb` | Normal | Check best practices | | `ce` | Visual | Explain selected code | | `cf` | Visual | Fix selected code | | `co` | Visual | Optimize selected code | | `cd` | Visual | Document selected code | | `ct` | Visual | Generate tests for selected code | ### Neorg | Keybinding | Mode | Description | | ------------- | ------ | ---------------------------- | | `nj` | Normal | Open today's journal | | `nyt` | Normal | Open yesterday's journal | | `ntm` | Normal | Open tomorrow's journal | | `nw` | Normal | Open workspace selector | | `nn` | Normal | Switch to notes workspace | | `nwp` | Normal | Switch to personal workspace | | `ntt` | Normal | Generate table of contents | | `ni` | Normal | Inject metadata | | `nm` | Normal | Update metadata | | `nc` | Normal | Toggle concealer | | `nem` | Normal | Export to markdown | | `nl` | Normal | Return to last workspace | | `nu` | Normal | Iterate next list type | | `np` | Normal | Iterate previous list type | ### LeetCode | Keybinding | Mode | Description | | ------------ | ------ | ------------------------ | | `ll` | Normal | Open LeetCode | | `ld` | Normal | LeetCode daily challenge | | `lr` | Normal | LeetCode random problem | | `ls` | Normal | Submit LeetCode solution | | `lt` | Normal | Test LeetCode solution |