1. Installation & Setup ✓
Task 1.1: Install Neovim
Linux (Ubuntu/Debian):
sudo apt update
sudo apt install neovimmacOS:
brew install neovimWindows:
winget install Neovim.Neovim
# or download from: https://github.com/neovim/neovim/releasesTask 1.2: Verify Installation
nvim --versionYou should see version info and build details.
Task 1.3: Basic Configuration
Create config file:
# Linux/Mac
mkdir -p ~/.config/nvim
nvim ~/.config/nvim/init.lua
# Windows
mkdir %USERPROFILE%\AppData\Local\nvim
nvim %USERPROFILE%\AppData\Local\nvim\init.luaMinimal init.lua:
-- Basic settings
vim.opt.number = true
vim.opt.expandtab = true
vim.opt.tabstop = 4
vim.opt.shiftwidth = 4
vim.opt.hlsearch = true
vim.opt.ignorecase = true
vim.opt.smartcase = true
-- Enable syntax highlighting
vim.cmd('syntax on')Practice: Run nvim and verify line numbers appear.
2. Understanding Modes ✓
Task 2.1: Normal Mode Basics
- Start here: Normal mode is the default
- Purpose: Navigate and execute commands
- Key point: Press
Escto return to Normal mode from any other mode
Task 2.2: Enter Insert Mode
| Key | Action |
|---|---|
i | Insert before cursor |
a | Insert after cursor |
o | Insert new line below |
O | Insert new line above |
I | Insert at beginning of line |
A | Insert at end of line |
Task 2.3: Visual Mode Selection
| Key | Action |
|---|---|
v | Character-wise selection |
V | Line-wise selection |
Ctrl+v | Block selection |
Task 2.4: Mode Switching Practice
Exercise:
- Start in Normal mode
- Press
i→ type “Hello” → pressEsc - Press
o→ type “World” → pressEsc - Press
V→ select the line → pressEsc - Repeat until switching feels natural
Practice: Set a timer for 20 minutes and practice mode switching.
3. Basic Commands ✓
Task 3.1: Quit Neovim
| Command | Action |
|---|---|
:q | Quit (if no changes) |
:q! | Quit without saving |
:wq | Save and quit |
ZZ | Save and quit (shortcut) |
ZQ | Quit without saving (shortcut) |
Task 3.2: Open Files
:e filename.txt " Edit file
:e . " Open current directory
:e ~/Documents/ " Open specific directoryTask 3.3: Save Files
:w " Save current file
:w filename.txt " Save as filename.txt
:wa " Save all open filesTask 3.4: Help System
:h " General help
:h :w " Help for :w command
:h i " Help for 'i' key
:h modes " Help about modesTask 3.5: Navigate Help
- Open help:
:h - Find a topic with
|pipes|around it (like|quickref|) - Put cursor on it and press
Ctrl+]to jump - Press
Ctrl+oto go back - Try several topics to practice
Quick Practice Exercises
Exercise 1: File Operations (5 minutes)
- Create new file:
nvim practice.txt - Enter Insert mode:
i - Type: “This is my first Neovim file”
- Exit Insert mode:
Esc - Save:
:w - Quit:
:q
Exercise 2: Mode Practice (10 minutes)
- Open file:
nvim practice.txt - Practice each insert mode:
ito insertato appendofor new line
- Practice Visual mode:
vto select charactersVto select lines
- Always return to Normal mode with
Esc
Exercise 3: Help Navigation (5 minutes)
- Open help:
:h - Navigate to
|usr_02.txt|with cursor - Press
Ctrl+] - Find another link and jump to it
- Use
Ctrl+oto navigate back - Close help:
:q
Success Checklist
After completing these tasks, you should be able to:
- Start and quit Neovim confidently
- Switch between Normal, Insert, and Visual modes
- Open, edit, and save files
- Navigate the help system
- Feel comfortable with basic Neovim operations
Next Steps
Once you’ve mastered these basics:
- Learn basic navigation (
hjkl,w,b,0,$) - Practice text editing commands (
d,y,p) - Explore more insert mode variations
- Learn search and replace
- Configure plugins and advanced settings
Remember: Consistency beats intensity. Practice 15-20 minutes daily rather than cramming for hours.