Chapter 2A Real Live Plugin
Have you ever added code to or edited your Vim configuration file, .vimrc? If so, you’ve written code in VimL. As you saw in the previous chapter, VimL largely consists of commands like we run on the Vim command line. A .vimrc, the traditional place to put customizations and user functions, is a VimL script file. Beyond simply editing our .vimrc, we can modularize our VimL code and make it easily distributable—either for our own use or to share with other Vim users—by packaging it as a Vim plugin.
As you saw in the previous chapter, a plugin can be as small as a single script that lives in the plugin directory. That’s what we’ll start with here. When we finish this chapter, we’ll have a plugin that opens a new ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access