Installation (Linux)

https://github.com/neovim/neovim/blob/master/INSTALL.md

# Download and extract
curl -LO <https://github.com/neovim/neovim/releases/latest/download/nvim-linux64.tar.gz>
tar -xzf nvim-linux64.tar.gz
sudo mv nvim-linux64 /opt/nvim

# Add to PATH
echo 'export PATH="$PATH:/opt/nvim/bin"' >> ~/.zshrc && source ~/.zshrc

Check Version

nvim --version

Basic File Operations

Task Command
Open file nvim filename
New file :e newfile.c
Save file :w
Save and quit :wq or ZZ
Quit without saving :q!
Save all files :wa

Navigation Between Windows (Splits/Floating)

Action Keys
Move to left Ctrl + w h
Move to right Ctrl + w l
Move up Ctrl + w k
Move down Ctrl + w j
Next window Ctrl + w w

File Management in LazyVim

Task Shortcut
Open file explorer (Neo-tree) Space + e
Create file inside Neo-tree a
Delete file inside Neo-tree d

Copy & Paste

Action Keys
Copy (line) yy
Copy (visual selection) v → select → y
Paste after cursor p
Paste before cursor P
Copy to system clipboard "+y
Paste from clipboard "+p

Undo / Redo

Action Key
Undo u
Redo Ctrl + r