Chapter 1The Lay of the Land

VimL, as you learned in the introduction, is based on Ex commands. To take full advantage of its capabilities, though, we need to move beyond those commands to functions—both the built-in ones that Vim provides and our own—types, logic, and the other additions that bring VimL from the Ex command set to the language level.

In this chapter we briefly go over VimL’s syntax. You’ll see how to write and call functions, define variables, iterate over collections of items, and more. We’ll finish by looking at the directory structure of a typical Vim plugin and getting ready to create our own plugin.

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.