Vim Zero-to-Hero
Bootcamp
Uzor
2025/08/05
CONTENTS
01
02
Meet Vim
Basic Moves
04
03
Customize & Exit
Edit Fast
03
Power Shortcuts
06
Practice Plan
01
Meet Vim
Why Vim Feels
Like a Game
Learning Vim is like mastering a skateboard: it's
compact, powerful, and lets you perform amazing
tricks once you know the basics.
Our Goal: Edit text at the speed of thought.
Each slide is a short mission to get you there.
Open Vim and Stay Calm
Step 1: Open Terminal
Step 2: See Welcome
Step 3: Remember
Type `vim` and press Enter.
Don't panic! This is normal.
Press `i` to type, `Esc` to stop.
Golden Rule: If keys act weird, press Esc to return to Normal mode.
Three Modes: Traffic Light System
Normal Mode
Insert Mode
Visual Mode
(Command Mode)
(Typing Mode)
(Highlight Mode)
Your home base. Use commands to
Press `i` to enter. This is where you
move, delete, and manipulate text.
type and edit text like a normal
You start here.
editor.
Press `v` to enter. Used to select
text for copying, deleting, or
The status line at the bottom always tells you which mode you're in.
formatting.
02
Basic Moves
Move with h j k l
Think of these as your compass or arrow keys, but
right under your fingertips on the home row. It's
faster!
k (up)
h (left)
Esc
j (down)
l (right)
The Vim Life-Cycle
1. Type (`i`)
2. Stop (`Esc`)
3. Save (`:w`)
4. Quit (`:q`)
Analogy: It's like putting your homework in a folder (`:w`) before leaving class (`:q`). Use :wq to do both!
Undo & Redo: Your Time
Machine
Made a mistake? No problem! Vim keeps a history
of your changes. Experiment fearlessly!
Press `u` to Undo
Go back in time, one change at a time. (Try
`10u` to undo 10 steps!)
Press `Ctrl-r` to Redo
Changed your mind? Go forward in time again.
03
Edit Fast
Delete with `x` and `dd`
`dd` is a Shredder
`x` is an Eraser
Deletes one character at a time, like the
letter under your cursor.
The quick brown fox
The quick brow fox
Deletes the entire line your cursor is on.
Poof! Gone!
Line 1: Hello
Line 2: World
Line 3: Vim is cool
Line 1: Hello
Line 3: Vim is cool
Remember: `u` is your friend if you delete something by accident!
Copy & Paste Like a Pro
Vim uses the word "yank" for copy. It's like pulling
text into a clipboard.
`yy` (Yank Line)
Copy the entire line your cursor is on.
`p` (Put/Paste)
Paste the copied text below the current line.
`P` (Put Before)
Paste the copied text above the current line.
Search and Hop with `/`
Need to find a word fast? The `/` key is your superpower.
1. Type `/`
2. Press `Enter`
3. Use `n` / `N`
Then your word.
Jump to the first match.
Go to next/previous match.
It's like Ctrl-F in a browser, but way faster! Use :nohl to turn off search highlighting.
04
Power Shortcuts
Jump to Line Numbers
Need to go to a specific line? Vim makes it instant.
It's like jumping to a page in a textbook.
Turn on Line Numbers: `:set number`
See line numbers on the left side of your file.
Jump to a Line: `:10`
Type a colon and the line number, then press Enter.
Quick Jumps: `gg` (Top), `G` (Bottom)
Go to the very start or end of your file instantly.
Repeat with Dot Magic
The dot command `.` is like a magic photocopy
button for your last action. It saves you tons of
time!
How it works:
1. Make a change (like deleting a word with `dw`).
2. Move your cursor somewhere else.
3. Press . to repeat that exact change.
Combine Commands: Build Like Lego
Vim commands are like Lego bricks. You can snap them together to create powerful actions.
Motion
Action
Where to act?
What to do?
`w` (word), `$` (end of line)
`d` (delete), `c` (change)
Example: `d2w`
Example: `c$`
Delete 2 words.
Change to the end of the line.
05
Customize & Exit
Customize Colors with
vimrc
Make Vim your own! The `vimrc` file is your
personal settings list. It's like picking a wallpaper
for your phone.
1. Open your vimrc: `vim ~/.vimrc`
This creates or opens your settings file.
2. Add these lines:
syntax on
colorscheme desert
3. Save and restart Vim!
Or use `:source $MYVIMRC` to reload settings.
Map Your Own Shortcuts
Tired of typing long commands? Create your own nicknames for them, like texting shortcuts!
nnoremap :w
This maps Ctrl+S to the :w (save)
command.
How to read it:
Warning!
• `nnoremap`: Create a shortcut in Normal mode.
Be careful not to overwrite important keys. Always test
• ``: The shortcut key (Ctrl+S).
your new shortcuts!
• `:w`: The command to run (Save).
Split Windows Like a
Boss
Work on multiple files or different parts of the
same file side-by-side. It's like opening two books
for homework!
`:sp` (Split Horizontal)
Creates a new window above/below the
current one.
`:vsp` (Split Vertical)
Creates a new window beside the current one.
`Ctrl-w w` (Switch Windows)
Hop between your open windows.
06
Practice Plan
5-Minute Daily Vim Drill
Practice makes perfect! This routine will build your muscle memory. Time yourself to track your speed!
1. Open a file: `vim
diary.txt`
2. Add text: Press `i`, type three lines, press
`Esc`.
3. Delete: Use `x` or `dd` to remove some words or a
line.
4. Copy & Paste: Yank a line (`yy`) and paste it 5 times
(`5p`).
5. Save & Quit: Type `:wq` to save your work and
exit.
Weekly Challenge
Tracker
Print this table and log your practice! Seeing your
progress is the best way to stay motivated and turn
learning into a game.
How to use it:
• Log your daily drill time.
• Record your best time for the 5-minute drill.
• Tick off commands as you master them.
• Celebrate your improvements, no matter how
small!
Keep Learning & Exploring
You've got the basics! Here are your next steps to becoming a true Vim master.
Vimtutor
Cheat Sheets
Join the Community
The best next step. Type `vimtutor`
Print a Vim cheat sheet poster and
Find a friendly Discord server or
in your terminal for an interactive
hang it by your desk for quick
online forum to ask questions and
30-minute lesson.
reference.
share tips.
Remember: Stay curious, press `u` when lost, and celebrate every tiny speed gain!
THANK YOU
Uzor
2025/08/05