Thursday, March 04, 2010

Scripting the Vim editor, Part 5: Event-driven scripting and automation

Scripting the Vim editor, Part 5: Event-driven scripting and automation: "Why repeat yourself? You can configure Vim’s comprehensive event model to execute time-saving scripts whenever particular editing events—such as loading a file or switching between editor modes—occur. This article, the fifth in a series, describes how events work in Vim, explores a selection of useful event types, and then gets you started with attaching specific scripts to particular events. The end result is a more automated workflow configured precisely to your needs."