Free Sample
+ Collection

Hacking Vim 7.2

Starting
Kim Schulz

Ready-to-use hacks with solutions for common situations encountered by users of the Vim editor
$23.99
$39.99
RRP $23.99
RRP $39.99
eBook
Print + eBook

Want this title & more?

$16.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781849510509
Paperback244 pages

About This Book

  • Create, install, and use Vim scripts to extend Vim's functionality
  • Personalize your work-area to fit your workflow
  • Optimize your Vim editor to be faster and more responsive
  • Packed with tips and tricks based on the author's practical experience

Who This Book Is For

If you are a Vim user who wants to get more out of this legendary text editor, this book is for you. It focuses on making life easier for intermediate to experienced Vim users.

Table of Contents

Chapter 1: Getting Started with Vim
Getting Vim
vi, Vim, and friends
Vim is charityware
Common terminology
Summary
Chapter 2: Personalizing Vim
Where are the configuration files?
Changing the fonts
Changing color scheme
A more informative status line
Toggle menu and toolbar
Adding your own menu and toolbar buttons
Modifying tabs
Work area personalization
Summary
Chapter 3: Better Navigation
Faster navigation in a file
Faster navigation in Vim help
Search and you will find
X marks the spot
Summary
Chapter 4: Production Boosters
Using templates
Using tag lists
Using autocompletion
Using macro recording
Using sessions
Registers and undo branching
Using undo branching
Folding
Open files anywhere
Summary
Chapter 5: Advanced Formatting
Formatting text
Formatting code
Using external formatting tools
Summary
Chapter 6: Basic Vim Scripting
Syntax-color schemes
Syntax regions
Using scripts
Script development
Summary
Chapter 7: Extended Vim Scripting
Script structure
Scripting tips
Debugging Vim scripts
Distributing Vim scripts
Remember the documentation
Using external interpreters
Summary

What You Will Learn

  • Gain a deep understanding of Vim to master the editor
  • Personalize Vim to suit your needs
  • Navigate through files faster while editing multiple files
  • Boost your productivity by using templates, auto-completion, folding, sessions, and registers
  • Improve the formatting of your text and code by mastering simple tricks
  • Extend Vim with scripts
  • Retain your Vim configuration across computers by storing an online copy

In Detail

Vim is one of the most powerful open-source editors used by programmers and system administrators around the world. While Vim itself is inherently a powerful editor, personalizing it to suit your needs can be a daunting task. However, it is possible to do so with the help of this book.

This book contains examples that cover everything from personalizing Vim according to the your work cycle to optimizations that will boost the your productivity. The main focus of this book is to make your life, as a Vim user, easier.

Each chapter deals with a different aspect, and provides recipes for easy-to-use hacks to customize and simplify your Vim experience. After an introduction covering the derivation of Vim and its relatives from the vi editor, the author explains basic changes that you can make to the appearance of the Vim editor. Further chapters cover improved navigation through files and buffers in Vim; speeding up your work with templates, auto-completion, folding, sessions, and registers; and formatting text and code, including using external formatting scripts. The final comprehensive chapter covers everything about using Vim scripts and scripting to extend functionality.

This book is written for Vim 7.2, the latest stable version. This latest version of Vim includes many new features like spell-checking, code completion, document tabs, current line and column highlighting, undo branches, and much more.

Authors

Read More