Modify and extend the powerful Vim Scripting editor

Posted by solrac on Feb 3, 2010 9:22 AM EDT
IBM/developerWorks; By Damian Conway, Dr.
Mail this story
Print this story

Making scripting fun again. Vimscript provides excellent support for operating on collections of data, a cornerstone of programming. In this third article in the series, learn how to use Vimscript's built-in lists to ease everyday operations such as reformatting lists, filtering sequences of filenames, and sorting sets of line numbers. You'll also walk through examples that demonstrate the power of lists to extend and enhance two common uses of Vim: creating a user-defined function to align assignment operators, and improving the built-in text completions mechanism.

Vimscript is a mechanism for reshaping and extending the Vim editor. Scripting allows you to create new tools, simplify common tasks, and even redesign and replace existing editor features. Start with Part 1 and get the basic elements of Vimscript. In Part 2 learn how to create and deploy new functions in the Vimscript. In Part 3 Explore Vimscript's support for lists and arrays.

Full Story

  Nav
» Read more about: Groups: Community, Linux, Ubuntu

« Return to the newswire homepage

This topic does not have any threads posted yet!

You cannot post until you login.