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.
Publisher resources
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
book
40 Algorithms Every Programmer Should Know
Learn algorithms for solving classic computer science problems with this concise guide covering everything from fundamental …
book
Software Engineering at Google
Today, software engineers need to know not only how to program effectively but also how to …
book
Head First Design Patterns, 2nd Edition
You know you don’t want to reinvent the wheel, so you look to design patterns—the lessons …
book
Fundamentals of Software Architecture
Salary surveys worldwide regularly place software architect in the top 10 best jobs, yet no real …