🖊️ Vim & NvChad

← Back to Cheatsheets

Key bindings and commands for Vim and NvChad. NvChad is a Neovim configuration that adds IDE-like features on top of Vim's modal editing model. The <leader> key is Spacebar by default in NvChad.

Type: Modal text editor Config: NvChad (Neovim) Leader Key: Spacebar (default)
Resources: NvChad — Docs Neovim — Reference Manual Vim Help Telescope.nvim

NvChad

▼

Global keybindings for navigating and managing NvChad. All shortcuts use <leader> (Spacebar) as the prefix unless noted.

Open Cheatsheet <leader> c h Shows all available keybindings
Find File (Telescope) <leader> f f Fuzzy find any file in the project
Find Word (Telescope) <leader> f w Search for a word across all files
Toggle Tree View Ctrl + n
Close Current File <leader> x Closes the current buffer
Toggle Vertical Terminal Alt + v
Change Theme <leader> t h
Manage LSPs (Mason)
:Mason
Install language servers, linters, formatters
Manage Plugins (Lazy)
:Lazy
Update or manage plugins

NvimTree

▼

File explorer bindings — these work when the cursor is inside the NvimTree panel.

Create File a Opens prompt to add a file/directory
Rename File r Renames the file/directory under cursor
Delete File d Deletes the file/directory under cursor
Show Help ? Toggles the NvimTree cheatsheet

LSP

▼

Language Server Protocol bindings for code intelligence — go to definition, hover docs, and refactoring.

Go to Definition g d
Show Documentation K (Shift + k) Hover with cursor and press K
Show Code Actions <leader> c a E.g., auto-import, refactor, fix error
Rename Symbol <leader> r n

Vim

▼

Core Vim commands that work in any Vim-based editor.

Find and Replace
:%s/find_this/replace_with_this/gc
% = whole file · g = all occurrences · c = confirm each
Copy Entire File to Clipboard
:%y+
Wipe Buffer Contents ggdG gg go to first line · d delete · G to end of file