This guide will help you get started with this minimal but powerful Neovim configuration designed for everyday coding and text editing.
# Ubuntu/Debian
sudo apt install neovim
# macOS with Homebrew
brew install neovim
mv ~/.config/nvim ~/.config/nvim.backup
# Place your init.lua file in your config directory
cp init.lua ~/.config/nvim/
nvim
The plugins will automatically install on first launch.
:w - Save file:q - Quit:wq - Save and quit:q! - Quit without saving/pattern - Search forward?pattern - Search backwardAdd this pattern to your init.lua:
-- Custom mapping example
vim.keymap.set('n', 'e', ':NERDTreeToggle', {
noremap = true,
silent = true,
desc = "Toggle file explorer"
})
Add to plugins section:
require('lazy').setup({
-- Existing plugins...
{ 'new/plugin-name' }, -- Add new plugin here
})
Replace this line:
vim.cmd('colorscheme gruvbox')
With your preferred colorscheme name.
If plugins don't load:
:Lazy sync inside Neovim:qa to quit all windows at once:bd:help command_name for built-in helpnvim . (opens current directory):qa (quit all)Once you're comfortable with these basics:
" for copy/paste)Remember: This configuration gives you a solid foundation that's both powerful and approachable. Take it step by step, and soon these commands will become muscle memory!