O'Reilly logo

Hacking Vim by Kim Schulz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6. Vim Scripting

One of Vim's most powerful features is the extensibility it offers by allowing power users to write scripts. With this feature, you can add nearly any feature to Vim and easily share it with other Vim users.

In this chapter, we will look at some of the aspects of script-writing for Vim. The chapter will contain recipes focusing on the following subjects:

  • Creating syntax-coloring scripts for Vim
  • How to install and use scripts in Vim
  • Different types of scripts
  • How to develop scripts in Vim
  • Basic syntax of a Vim script
  • How to structure a Vim script
  • Tips for when you develop Vim scripts
  • How to debug a Vim script
  • How to use other scripting languages when writing Vim scripts

After you have read this chapter you should have a clear idea ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required