Portable Neovim configuration that works on any Linux server or macOS machine.
git clone https://github.com/AlextheYounga/myvim.git
cd ~ /myvim
./setup-nvim.sh
Then start a new shell or run:
export PATH=" ${HOME} /.local/bin:${PATH} "
nvim
Platform
Method
Linux x86_64
Downloads official binary
Linux aarch64
Builds from source
macOS (Intel/Apple Silicon)
Downloads official binary
Key
Action
Space + e
Toggle file explorer
Space + E
Reveal current file in explorer
Space + ?
Open searchable Vim cheatsheet
Space + wait
Show all leader keybindings (which-key)
Space + Tab
Toggle focus between tree and editor
Ctrl + a
Select all
Ctrl + d
Scroll down (centered)
Ctrl + u
Scroll up (centered)
Esc
Clear search highlight
File Explorer (nvim-tree)
Key
Action
a
Create new file/folder
d
Delete
r
Rename
x
Cut
c
Copy
p
Paste
q
Close explorer
g?
Show all nvim-tree keybindings
Command
Action
:%y
Yank (copy) entire file
:%y+
Yank entire file to system clipboard
ggVG
Select entire file
:TSInstall <lang>
Install treesitter parser for a language
:TSInstallInfo
Show installed/available parsers
Leader key : Space
Theme : One Dark (darker variant)
Indentation : 2 spaces, auto-expand tabs
Line numbers : Absolute (not relative)
Mouse : Enabled
Search : Case-insensitive (smart case)
Clipboard : System clipboard + OSC52 over SSH
Treesitter Languages (Pre-installed)
Lua, Vim, Bash, Fish, Python, JavaScript, TypeScript, TSX, JSON, YAML, TOML, HTML, CSS, PHP, Ruby, Vue, Markdown, Go, Rust, C, Zig, Dockerfile, Terraform
Additional languages auto-install when you open a file.
~/.local/nvim/ # Neovim installation
~/.local/bin/nvim # Symlink to nvim binary
~/.config/nvim/init.lua # Configuration
~/.local/share/nvim/ # Plugins and data
rm -rf ~ /.local/nvim ~ /.local/bin/nvim ~ /.config/nvim ~ /.local/share/nvim
git - for cloning plugins
curl or wget - for downloading Neovim
gcc or clang - for treesitter (installed automatically)
cmake, ninja - only for aarch64 Linux (builds from source)