Table of Contents
An Introduction |
The World’s Shortest History Lesson |
Who Should Read This Book |
How to Read This Book |
Online Resources |
Acknowledgments |
1. | The Lay of the Land |
Functions, Types, and Variables |
Loops and Comparisons |
Our Project: An Interface for mpc |
The Structure of a Vim Plugin |
2. | A Real Live Plugin |
But First, a Function |
Running External Commands |
Writing Text to a Buffer |
3. | The Autoload System |
Autoloading Functions |
Finding Windows by Buffers |
The Built-in Buffer Functions |
Retrieving the Text of a Line |
4. | Recognizing File Types |
Autocommands and Their Events |
Detecting the Current File Type |
Making Filetype-Specific Changes |
5. | Highlighting Syntax |
The Vim Syntax File |
Using conceal with Syntax Regions |
Specifying a New Syntax |
6. | Commands and Mappings |
Writing User Commands ... |
Get The VimL Primer now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.