Filter by products, topics, and types of content

(0 Products)

(92 Topics)

(0 Industries)

(7 Types)

1 - 5 of 5 results
Show Summaries | Hide Summaries
View Results
Title up Type none Date none
Scripting the Vim editor, Part 1: Variables, values, and expressions
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. This article (the first in a series) introduces the fundamental components of the Vimscript programming language: values, variables, expressions, statements, functions, and commands. These features are demonstrated and explained through a series of simple examples.
Also available in: Russian   Japanese   Portuguese  
Articles 06 May 2009
Scripting the Vim editor, Part 2: User-defined functions
User-defined functions are an essential tool for decomposing an application into correct and maintainable components, in order to manage the complexity of real-world programming tasks. This article (the second in a series) explains how to create and deploy new functions in the Vimscript language, giving several practical examples of why you might want to.
Also available in: Russian   Japanese   Portuguese   Spanish  
Articles 07 Jul 2009
Scripting the Vim editor, Part 3: Built-in lists
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.
Also available in: Japanese  
Articles 27 Jan 2010
Scripting the Vim editor, Part 4: Dictionaries
A dictionary is a container data structure that offers different optimizations and trade-offs from a list. In particular, in a dictionary the order of the elements stored is irrelevant and the identity of each element is explicit. In this fourth article in a series introducing Vimscript, Damian Conway introduces you to dictionaries, including an overview of their basic syntax and many functions. He concludes with several examples that illustrate the use of dictionaries for more efficient data processing and cleaner code.
Also available in: Japanese  
Articles 10 Feb 2010
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.
Also available in: Japanese  
Articles 03 Mar 2010
1 - 5 of 5 results
Show Summaries | Hide Summaries