Vim BookVim Book
Vim Book<br>A short, practical book for people who’ve never touched Vim and want to<br>actually get comfortable with it.<br>Before You Start<br>: what modal editing even is<br>Modes<br>: Normal, Insert, Visual, Command-line<br>Moving Around<br>: getting anywhere without arrow keys<br>Editing Basics<br>: insert, delete, copy, paste, undo<br>Search and Replace<br>: finding and changing text fast<br>Visual Mode<br>: selecting text on purpose<br>Registers and Clipboard<br>: copy-paste, properly<br>Files and Buffers<br>: working with more than one file<br>Configuring Vim<br>: your .vimrc, a few good defaults<br>Plugins 101<br>: installing your first few plugins<br>Building a Habit<br>: a two-week practice plan<br>Appendix: Cheat Sheet<br>: everything on one page<br>Who this is for<br>Anyone who’s opened Vim by accident, typed a few letters, watched garbage<br>fill the screen, and closed the terminal because they couldn’t figure out<br>how to quit. No prior knowledge assumed. By the end you’ll be able to open<br>a file, move around, edit it, save it, and quit on purpose.<br>What you need<br>Vim installed (vim --version to check; brew install vim or<br>apt install vim if not).<br>A terminal you’re already somewhat comfortable in.<br>A weekend of spare time, in short sessions.<br>Neovim works fine too. Where it differs in a way that matters to a<br>beginner, you’ll see a “Neovim note.”<br>How to use it<br>Read a chapter, then do the exercises before moving on. Vim is a physical<br>skill, not just a mental one, so practice each thing in a scratch file<br>before trusting yourself to do it for real.<br>Author<br>By Dariush Abbasi<br>License<br>CC BY 4.0