You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Igor Irianto 3a8412af43 Add description on readme 3 years ago
images Add learn-vim book cover 3 years ago
.gitignore Initial Commit, also Ch 5 - moving in file 4 years ago
LICENSE.txt Update License to by-nc-sa 4 years ago
README.md Add description on readme 3 years ago
ch00_new_to_vim_read_this_first.md Add thank yous subsection 3 years ago
ch01_starting_vim.md Add a new heading for clarity 3 years ago
ch02_buffers_windows_tabs.md Normalize the Keyboard stroke syntax 3 years ago
ch03_searching_files.md Update heading code syntax 3 years ago
ch04_vim_grammar.md Revise ch04 3 years ago
ch05_moving_in_file.md Remove redundant texts 3 years ago
ch06_insert_mode.md Merge pull request #71 from victorhck/master 3 years ago
ch07_the_dot_command.md normalize the case 3 years ago
ch08_registers.md Normalize the registers 3 years ago
ch09_macros.md add a clarifying question 3 years ago
ch10_undo.md Edit ch10 3 years ago
ch11_visual_mode.md Fix wording on vis mode 3 years ago
ch12_search_and_substitute.md Shorten a long command desc 3 years ago
ch13_the_global_command.md Normalize the registers 3 years ago
ch14_external_commands.md Revise ch14 3 years ago
ch15_command-line_mode.md Update case cmdline-mode deletes 3 years ago
ch16_tags.md fix small typo ch16 3 years ago
ch17_fold.md Remove unnecessary sentence at the end 3 years ago
ch18_git.md Update image alt name 3 years ago
ch19_compile.md Fix wrong path in VIMRUNTIME compiler directory 3 years ago
ch20_views_sessions_viminfo.md Add emphasis on the problem 3 years ago
ch21_vimrc.md Fix mappping typo 3 years ago
ch22_vim_packages.md Update packages chapter 3 years ago
ch23_vim_runtime.md Switch the order of sentences 3 years ago
ch24_vimscript_basic_data_types.md Replace echo chapter with ex-mode 3 years ago
ch25_vimscript_conditionals_and_loops.md Fix syntax error on the OR subsection 3 years ago
ch26_vimscript_variables_scopes.md Fix grammar 3 years ago
ch27_vimscript_functions.md Update concluding paragraph 3 years ago

README.md

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.

Purchase This Guide

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

Part 2: Customize Vim the Smart Way

Part 3: Learn Vimscript the Smart Way

Translations

The materials here are all © 2020-2021 Igor Irianto.

Creative Commons License

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International.