Skip to content

Instantly share code, notes, and snippets.

@amalrkc
Last active May 8, 2025 21:57
Show Gist options
  • Save amalrkc/66900a6773a2b944af52ad80450dad03 to your computer and use it in GitHub Desktop.
Save amalrkc/66900a6773a2b944af52ad80450dad03 to your computer and use it in GitHub Desktop.
My personal cheatsheet for NvChad v1. Source: https://youtu.be/Mtgo-nP_r8Y

NvChad Cheatsheet

Setup

  • Install Neovim with instructions from here
  • Run alias vim=nvim to use 'vim' as an alias. ie: Run Neovim with the vim command.
  • Run echo 'alias vim=nvim' >> .zshrc to save the alias to shell configuration. This command shown here only works for zsh.
  • Install Nerdfonts
  • Install Git

Installation

  • Run mv ~/.config/nvim ~/.config/nvim.backup to backup any neovim configuration you already have.
  • Run rm -rf ~/.local/share/nvim to delete any local neovim caches, to prevent any issues.
  • Install NvChad with instructions from here.
    • Run git clone https://github.com/NvChad/starter ~/.config/nvim && nvim if you use Linus or MacOS.
  • The NvChad setup will ask you to, if you wish to install an example custom config. Press n to decline.
  • Wait for NvChad to finish installing all the default packages.

Theming

  • Space t h to enter theme switcher.
    • Ctrl + p to choose previous theme.
    • Ctrl + n to choose next theme.
    • You can also type the name of the theme you are searching for.

Syntax Highlighting

  • :TSInstall <fileformat>/<language> to install syntax highlighting for a specific language.
  • :TSInstallInfo to view installed syntaxes.
  • Space c h to display cheatsheet.
    • Here the <leader> is equivalent to the Space Key.

Filetree

  • ctrl + n to view filetree
    • Use directional buttons to navigate filetree
    • Press Enter to open selected file.
    • Press m to mark a file.
    • Press a and enter file-name to create a new file.
    • Press c to copy a file.
    • Press p to paste a file.
    • Press r to rename a file.
  • Space f f to open file finder
    • Type the filename to search for it.
  • Space f b to browse open files/buffers

Creating Windows and Navigating them

  • Use :vsp command to vertical split window.
  • Use :sp command to horizontaly split window.
  • Press Ctrl + h to switch left.
  • Press Ctrl + j to switch down.
  • Press Ctrl + k to switch up.
  • Press Ctrl + l to switch right.
  • Press Ctrl + w q to close window.

Line Numbering

  • Press Ctrl + n to enable line numbering
  • Press Ctrl + r n to enable relative line numbering

Tab Switching

  • Press Tab to switch tabs forwards.
  • Press Shift + Tab to switch tabs backwards.
  • Press Space + x to close current tab/buffer.

Terminal

  • Press Space h to open horizontal terminal.
  • Press Space v to open vertical terminal.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment