vim
.mcp
.manycoolprojects
10 · Make Vim Your Own With Maps
Lessons
Tips
Step 6 / 6
Step 6 of 6
10. Make Vim Your Own With Maps
Maps I use
In the editor, you can see some of the maps that I use.
←
Ctrl ←
→
Ctrl →
Lesson 11 →
Ctrl ⏎
Loading editor…
Course map
↑
↓
browse ·
⏎
open ·
esc
close
×
Lessons
1
Why Vim
5 steps
Vim is ubiquitous
Vim is keyboard-first
Vim is terminal-first
Vim gives you a language for editing text
Vim has a high ceiling
2
Vim Is A Modal Editor
5 steps
"How do I get out of Vim?!"
The meaning of "modal"
Vim's modes
Normal mode
Insert mode
3
Basic Navigation
6 steps
Moving the cursor
Navigating to specific lines
Navigating within the current line
Using a count to repeat motions
Making bigger strides
Jumping to matching characters
4
Basic Editing
5 steps
Inserting text
Deleting characters
Deleting lines
Deleting within special characters
Changing within special characters
5
Visual Mode
7 steps
What is visual mode?
Visual line mode
Visual block mode
What can I do with visual mode?
Changing the visual area
Reselecting the last visual region
Selecting text objects
6
Copying And Pasting
7 steps
A change in terminology
Yanking and putting lines
Yanking in visual mode
The unnamed register
Named registers
The zero register
The number registers
7
Undo And Redo
5 steps
Undo
Redo
Undo branches
Time traveling with Vim
Undo persistence
8
Searching
7 steps
Searching with Vim
Jumping between matches
Searching for literal text
Search offsets
Searching for the word under the cursor
Case insensitive search
Intelligently setting case sensitivity
9
Operators Motions And Text Objects
6 steps
Editing text with Vim is like speaking a language
The structure of Vim's command language
Operators
Text objects — inner versus outer
Vim's various text objects
Motions
10
Make Vim Your Own With Maps
6 steps
Vim is extensible
Fundamentals of mapping with Vim
General advice on creating maps
The leader key
Leader isn't the only option
Maps I use
11
Buffers
6 steps
Working with multiple files
Listing your open buffers
Moving between buffers
A slightly easier way to move between buffers
Jumping back and forth
Deleting a buffer
12
Windows
9 steps
Windows are a viewport into a buffer
Commands for opening new windows
Two windows, one buffer
Closing windows
The most important thing to remember
Navigating between windows
Resizing windows
Moving windows around
Popping up a new window for quick notes
13
Tabpages
6 steps
Tabpages are collection of windows
Other ways to create new tabpages
Moving between tabpages
Closing tabpages
Reshuffling tabpages
Tabpage mappings from my personal Vim config
14
Marks
8 steps
Marks
User-defined marks
Jumping with precision
Marks across buffers
Where are my marks set?
Special marks: last change
Special marks: visual selection
Special marks: sentences and paragraphs
15
The Changelist Jumplist And Tag Stack
5 steps
Vim's built-in lists
The changelist
The jumplist
The jumplist works across files
The tag stack
17
Macros
5 steps
Macros are incredibly powerful
Replaying macros
What's in a name?
You don't even have to record!
Appending to macros
18
Ex Commands Addresses And Ranges
6 steps
Basic Ex commands
Addresses
Useful address specifiers
Ranges
Default ranges
Visual mode and the range operator
19
The Global Command
10 steps
What is the global command?
The inverse global command
Useful Ex commands to use with the global command
A better definition
Chaining global commands
Normal and the global command
Acting on the surrounding lines
The global command as a poor man's quickfix list
Collapsing bullet points
Tying it together with an advanced workflow
Practice
Scratchpad — fullscreen vim
Tips
Adjusting The Viewport
Backward Search
Basic Completion
Better Cursor Visibility
Building Numbered Lists
Chop Rest Of Line
Clearing A Register
Confirming Substitutions
Delete All Indentation
Deleting Duplicate Lines
High Middle Low
Incrementing And Decrementing
Indenting In Insert Mode
Insertion With Counts
Join Lines
Jumping To Files
Line Completion
Line Length Guides
List Occurences In Visual Range
Open Window In New Tab
Previewing Matches
Putting In Insert Mode
Repeatable Putting
Repeating Last Inserted Text
Repeating The Last Command
Replace Mode
Resume Insert Mode
Reverse Lines In File
Rot13
Searching Inside Visual Range
Smile
Start And End Atoms
Start Of Line With Underscore
Switch Case
The Format Operator
The S Key
Two Windows One Buffer