Video description
Vim is a great editor, but it’s certainly not perfect. Even though it has a huge range of built-in tools and commands, it’s always missing one or two crucial features. Unfortunately, which crucial features are missing—and how they should be provided—is different for just about every single Vim user. Fortunately, Vim provides a way for every single Vim user to modify, enhance, and extend Vim to suit themselves via its built-in scripting language. Developers are only as good as their tools and the most fundamental tool developers have is their editor. Designed for the advanced beginner- to intermediate-level developer with some Vim scripting experience, this course teaches you how to script Vim to make it much more powerful and vastly easier to use.
- Understand the features and syntax of Vim’s built-in scripting language
- Learn to connect your scripts into Vim’s interface via abbreviations, maps, and auto commands
- Survey the limitations and pitfalls of the Vimscript language and learn to avoid them
- Master the ability to use the Vimscript debugger
- Review dozens of the most useful built-in functions Vim provides
- Understand how to implement your own Vim functions
- See how Vim is scripted in other scripting languages, so you can reuse functions you’ve invented
Dr. Damian Conway is a widely sought-after speaker, trainer, and author. He runs Thoughtstream, an international IT training company serving clients throughout Australasia, North America, and Europe; he designed the regex mechanism for Perl 6; and he's written multiple O'Reilly titles, including Modern Perl Best Practices and Mastering Vim.
Table of contents
- Extending Vim Without Coding
-
The VimScript Language
- Vim Scripting Basics
- Running Vim Scripts
- Statements
- Values
- Comments
- Variables
- Expressions
- Control Structures
- Built-In Functions
- String Functions
- Pattern Matching and Transformation
- Input and Output Functions
- Buffer Interaction Functions
- Cursor Control Functions
- System and Filesystem Functions
- Code Execution Functions
-
Data Structures in VimScript
- Lists
- List Creation and Access
- Sublists
- Nested Lists
- List Assignment
- Sublist Assignment
- List Identity
- List Unpacking
- Other List-Related Functions
- Other List-Related Procedures
- Dictionaries
- Accessing Dictionary Entries
- List-Processing of Dictionaries
- Assignments and Identities
- Additions and Subtractions
- Other Dictionary-Related Functions
- How to Use Dictionaries
-
Scripting Vim
- User-Defined Functions
- Functions and Maps
- Variadic Argument Lists
- Function References
- A Useful Example
- Another Useful Example
- Exceptions
- Debugging
- Autocommands
- A Skeletal Example
- Timeouts
- Tidying Your Files
- Removing Autocommands
- Autocommand Groups
- Using Embedded Languages
- Perl
- Perl API
- Filtering with Perl
- Python
- Python API
- Python 3
- Other Languages
- Conclusion
Product information
- Title: Scripting Vim
- Author(s):
- Release date: August 2017
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781491996270
You might also like
video
Create a Vim Plugin
Create a Vim plugin from scratch and get to understand the whole workflow needed to put …
book
Pro Vim
Pro Vim teaches you the real-world workflows, tips, and tricks of this powerful, terminal-based text editor. …
book
Mastering Vim
Mastering Vim, reviewed by Bram Moolenaar, the creator of Vim, covers usage of Vim and Neovim, …
video
Mastering Vim
Roughly half of all software developers use vi/Vim on a regular basis, but most of those …