# neovim

# NvChad Shortcuts & Hotkeys

[https://www.reddit.com/r/neovim/comments/12qku4w/nvchad\_cheatsheet/](https://www.reddit.com/r/neovim/comments/12qku4w/nvchad_cheatsheet/)

[![image.png](https://wiki.folkerts.it/uploads/images/gallery/2025-07/scaled-1680-/pPFimage.png)](https://wiki.folkerts.it/uploads/images/gallery/2025-07/pPFimage.png)

space+c+h CHEATSHEET

space+t+h THEMES

ctrl+n nvimtree (m: mark, a: add file, c: copy, p: paste, r: rename)

ctrl+hjkl fenster switchen

space+f+f find file

space+f+b find buffered file

:vsp vertical split

:sp split

space+n line numbers

space+r+n relative line numbers

space+x close buffer tab

tab / shift+tab switch buffer tab

space+h terminal horizontal split

space+v terminal vertical split

# NvChad Installation

[![image.png](https://wiki.folkerts.it/uploads/images/gallery/2025-07/scaled-1680-/4ouimage.png)](https://wiki.folkerts.it/uploads/images/gallery/2025-07/4ouimage.png)

[![image.png](https://wiki.folkerts.it/uploads/images/gallery/2025-07/scaled-1680-/ZoVimage.png)](https://wiki.folkerts.it/uploads/images/gallery/2025-07/ZoVimage.png)

[https://nvchad.com/docs/quickstart/install](https://nvchad.com/docs/quickstart/install)

```bash
# essentials für zb C-Compiler
apt install build-essential

# Nerdfont installieren
wget -P ~/.local/share/fonts https://github.com/ryanoasis/nerd-fonts/releases/download/v3.0.2/JetBrainsMono.zip \
&& cd ~/.local/share/fonts \
&& unzip JetBrainsMono.zip \
&& rm JetBrainsMono.zip \
&& fc-cache -fv

# Nvim installieren
snap install nvim --classic

# NvChad installieren
git clone https://github.com/NvChad/starter ~/.config/nvim && nvim

# in nvim:
:MasonInstallAll
```

Falls es Probleme auf einem Hetzner Server mit dem Nutzervezeichnis unter root gibt:

(in nvim mit `:echo stdpath("config")` prüfen was nvim als home-Verzeichnis nimmt)

```bash
mkdir -p /home/root/.config
mv /root/.config/nvim /home/root/.config/
```

# nvim cheatsheet

[https://www.reddit.com/r/vim/comments/18b1nqj/neovim\_cheat\_sheet/](https://www.reddit.com/r/vim/comments/18b1nqj/neovim_cheat_sheet/)

[![image.png](https://wiki.folkerts.it/uploads/images/gallery/2025-07/scaled-1680-/hENimage.png)](https://wiki.folkerts.it/uploads/images/gallery/2025-07/hENimage.png)

[![image.png](https://wiki.folkerts.it/uploads/images/gallery/2025-07/scaled-1680-/YFhimage.png)](https://wiki.folkerts.it/uploads/images/gallery/2025-07/YFhimage.png)

# neovim + lazyvim Installation

## neovim

[https://github.com/neovim/neovim/blob/master/INSTALL.md](https://github.com/neovim/neovim/blob/master/INSTALL.md)

```bash
sudo apt install software-properties-common
# sudo add-apt-repository ppa:neovim-ppa/unstable
sudo add-apt-repository ppa:neovim-ppa/stable
sudo apt update
sudo apt install neovim
```

## lazyvim

[https://www.lazyvim.org/installation](https://www.lazyvim.org/installation)

```
# required
mv ~/.config/nvim{,.bak}
# optional but recommended
mv ~/.local/share/nvim{,.bak}
mv ~/.local/state/nvim{,.bak}
mv ~/.cache/nvim{,.bak}

git clone https://github.com/LazyVim/starter ~/.config/nvim

rm -rf ~/.config/nvim/.git

```

```
nvim
```

It is recommended to run

```
:LazyHealth
```

after installation. This will load all plugins and check if everything is working correctly.

```
sudo apt-get install xclip
```