4.7 KiB
Learn Vim (the Smart Way)
What is this about?
Learn Vim (the Smart Way) is a guide to learn the good parts of Vim.
There are many places to learn Vim: the vimtutor
is a great place to start and the help
manual has all the references you will ever need.
However, the average user needs something more than vimtutor
and less than the help
manual. This guide attempts to bridge that gap by highlighting only the key features to learn the most useful parts of Vim in the least time possible.
Chances are you won't need all 100% of Vim features. You probably only need to know about 20% to become a powerful Vimmer. This guide will show you which Vim features you will find most useful.
This is an opinionated guide. It covers techniques that I often use when using Vim. The chapters are sequenced based on what I think would make the most logical sense for a beginner to learn Vim.
This guide is examples-heavy. When learning a new skill, examples are indispensable, having numerous examples will solidify the concepts more effectively.
Some of you may wonder why do you need to learn Vimscript? Won't learning just to use Vim enough? In my first year of using Vim, I was content with just knowing how to use Vim. Time passed and I started needing Vimscript more and more to write custom commands for my specific editing needs. As you are mastering Vim, you will sooner or later need to learn Vimscript. So why not sooner? Vimscript is a small language. You can learn its fundamentals in just four chapters of this guide.
You can go far using Vim without knowing any Vimscript, but knowing it will help you excel even farther.
This guide is written for both beginner and advanced Vimmers. It starts out with broad and simple concepts and ends with specific and advanced concepts. If you're an advanced user already, I would encourage you to read this guide from start to finish anyway, because you will learn something new!
I Want More Vim Tips!
Follow @learnvim for updates, Vim tips, etc.
Support This Project
This guide is and will always be free.
If you want to financially support this project, you can purchase this guide on gumroad. There are two purchase options:
- Ebooks (pdf, epub, mobi)
- Ebooks (pdf, epub, mobi) + 200 bonus Screencasts
Table Of Contents
Prologue
Part 1: Learn Vim the Smart Way
- Ch 1 - Starting Vim
- Ch 2 - Buffers, Windows, and Tabs
- Ch 3 - Opening and Searching Files
- Ch 4 - Vim Grammar
- Ch 5 - Moving in a File
- Ch 6 - Insert Mode
- Ch 7 - The Dot command
- Ch 8 - Registers
- Ch 9 - Macros
- Ch 10 - Undo
- Ch 11 - Visual Mode
- Ch 12 - Search and Substitute
- Ch 13 - The Global Command
- Ch 14 - External Commands
- Ch 15 - Command-line Mode
- Ch 16 - Tags
- Ch 17 - Fold
- Ch 18 - Git
- Ch 19 - Compile
- Ch 20 - Views, Sessions, and Viminfo
Part 2: Customize Vim the Smart Way
Part 3: Learn Vimscript the Smart Way
- Ch 24 - Vimscript Basic Data Types
- Ch 25 - Vimscript Conditionals And Loops
- Ch 26 - Vimscript Variable Scopes
- Ch 27 - Vimscript Functions
Translations
- Learn-Vim 中文翻译(
zh-CN
) - Learn-Vim Spanish(
es
)
License & Copyright
The materials here are all © 2020-2021 Igor Irianto.
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International.