Limit search to available items
Book Cover
Author Schulz, Kim.

Title Hacking Vim 7.2 : ready-to-use hacks with solutions for common situations encountered by users of the Vim editor / Kim Schulz
Published Birmingham, UK : Packt Pub., ©2010


Description 1 online resource (v, 228 pages) : color illustrations
Contents Cover; Copyright; Credits; About the Author; About the Reviewers; Table of Contents; Preface; Chapter 1: Getting Started with Vim; Getting Vim; vi, Vim, and friends; vi; STEVIE; Elvis; nvi; Vim; Vile; Compatibility; Vim is charityware; Common terminology; Summary; Chapter 2: Personalizing Vim; Where are the configuration files?; Changing the fonts; Changing color scheme; Personal highlighting; Example 1: Mark color characters after a certain column; Example 2: Mark tabs not used for indentation in code; Example 3: Preventing errors caused by IP addresses; A more informative status line
Toggle menu and toolbarAdding your own menu and toolbar buttons; Adding a menu; Adding toolbar icons; Modifying tabs; Work area personalization; Adding a more visual cursor; Adding line numbers; Spell checking your language; Adding helpful tool tips; Using abbreviations; Example 1: Using abbreviations for quick address insertion; Modifying key bindings; Summary; Chapter 3: Better Navigation; Faster navigation in a file; Context-aware navigation; Moving around within a code file; Moving in a code file; Navigating long lines; Faster navigation in Vim help; Faster navigation in multiple buffers
Open referenced files fasterSearch and you will find; Search the current file; Example 1: Find the next occurrence of a word; Example 2: Search for a word under the cursor; Search in multiple files; Search the help system; X marks the spot; Visible markers-using signs; Hidden markers-using marks; Summary; Chapter 4: Production Boosters; Using templates; Using template files; Abbreviations as templates; Snippets with the snipMate script; Using tag lists; Easier taglist navigation; Other usages of taglists; Using autocompletion; Autocompletion with known words
Autocompletion using dictionary lookupOmnicompletion; All-in-one completion; Using macro recording; Using sessions; Simple session usage; Satisfy your own session needs; Sessions as a project manager; Registers and undo branching; Using registers; The unnamed register; The small delete register; The numbered registers; The named registers; The read-only registers; The selection and drop registers; The black hole register; Search pattern register; The expression register; Using undo branching; Folding; Simple text file outlining; Using vimdiff to track the changes; Navigation in vimdiff
Using diff to track changesOpen files anywhere; Faster remote file editing; Summary; Chapter 5: Advanced Formatting; Formatting text; Putting text into paragraphs; Aligning text; Marking headlines; Creating lists; Formatting code; Autoindent; Smartindent; Cindent; Indentexpr; Fast code-block formatting; Auto format pasted code; Using external formatting tools; Indent; Berkeley Par; Tidy; Summary; Chapter 6: Basic Vim Scripting; Syntax-color schemes; Your first syntax-color file; Syntax regions; Color scheme and syntax coloring; Using scripts; Script types; Installing scripts
Summary Annotation 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.<br /><br />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.<br /><br />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.<br /><br />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.<br /><br />Getting the most out of the Vim editor<br /><br /><br />What you will learn from this book :<br />Gain a deep understanding of Vim to master the editor<br />Personalize Vim to suit your needs<br />Navigate through files faster while editing multiple files<br />Boost your productivity by using templates, auto-completion, folding, sessions, and registers<br />Improve the formatting of your text and code by mastering simple tricks<br />Extend Vim with scripts<br />Retain your Vim configuration across computers by storing an online copy<br /><br />Approach<br />This book is a tutorial packed with ready-to-use hacks that give solutions for common problems faced by Vim users in their everyday life. Every chapter covers a set of recipes, each of which follows a systematic approach with a self-contained description of the task it covers, how to use it, and what you gain by using it. The minimum version of Vim required for each hack is clearly indicated.<br /><br /><br />Who this book is written for<br />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.<br />
Notes Print version record
SUBJECT Vi (Computer program)
Vi (Computer program) fast (OCoLC)fst01899385
Subject Text editors (Computer programs)
Hackers -- Handbooks, manuals, etc
Computer programming -- Handbooks, manuals, etc
COMPUTERS -- Digital media -- Desktop Publishing.
COMPUTERS -- Desktop Applications -- Word Processing.
Computer programming.
Text editors (Computer programs)
Genre/Form Handbooks and manuals.
Form Electronic book
ISBN 9781849510516