Book description
Vim is a fast and efficient text editor that will make you a faster and more efficient developer. It's available on almost every OS, and if you master the techniques in this book, you'll never need another text editor. In more than 120 Vim tips, you'll quickly learn the editor's core functionality and tackle your trickiest editing and writing tasks. This beloved bestseller has been revised and updated to Vim 7.4 and includes three brand-new tips and five fully revised tips.
Publisher resources
Table of contents
- Acknowledgments
- Foreword to the First Edition
- Read Me
- Read the Forgotten Manual
- 1. The Vim Way
-
Part I. Modes
- 2. Normal Mode
-
3. Insert Mode
- Tip 13. Make Corrections Instantly from Insert Mode
- Tip 14. Get Back to Normal Mode
- Tip 15. Paste from a Register Without Leaving Insert Mode
- Tip 16. Do Back-of-the-Envelope Calculations in Place
- Tip 17. Insert Unusual Characters by Character Code
- Tip 18. Insert Unusual Characters by Digraph
- Tip 19. Overwrite Existing Text with Replace Mode
- 4. Visual Mode
-
5. Command-Line Mode
- Tip 27. Meet Vim’s Command Line
- Tip 28. Execute a Command on One or More Consecutive Lines
- Tip 29. Duplicate or Move Lines Using ‘:t’ and ‘:m’ Commands
- Tip 30. Run Normal Mode Commands Across a Range
- Tip 31. Repeat the Last Ex Command
- Tip 32. Tab-Complete Your Ex Commands
- Tip 33. Insert the Current Word at the Command Prompt
- Tip 34. Recall Commands from History
- Tip 35. Run Commands in the Shell
- Tip 36. Run Multiple Ex Commands as a Batch
- Part II. Files
-
Part III. Getting Around Faster
-
8. Navigate Inside Files with Motions
- Tip 47. Keep Your Fingers on the Home Row
- Tip 48. Distinguish Between Real Lines and Display Lines
- Tip 49. Move Word-Wise
- Tip 50. Find by Character
- Tip 51. Search to Navigate
- Tip 52. Trace Your Selection with Precision Text Objects
- Tip 53. Delete Around, or Change Inside
- Tip 54. Mark Your Place and Snap Back to It
- Tip 55. Jump Between Matching Parentheses
- 9. Navigate Between Files with Jumps
-
8. Navigate Inside Files with Motions
-
Part IV. Registers
- 10. Copy and Paste
-
11. Macros
- Tip 65. Record and Execute a Macro
- Tip 66. Normalize, Strike, Abort
- Tip 67. Play Back with a Count
- Tip 68. Repeat a Change on Contiguous Lines
- Tip 69. Append Commands to a Macro
- Tip 70. Act Upon a Collection of Files
- Tip 71. Evaluate an Iterator to Number Items in a List
- Tip 72. Edit the Contents of a Macro
-
Part V. Patterns
-
12. Matching Patterns and Literals
- Tip 73. Tune the Case Sensitivity of Search Patterns
- Tip 74. Use the \v Pattern Switch for Regex Searches
- Tip 75. Use the \V Literal Switch for Verbatim Searches
- Tip 76. Use Parentheses to Capture Submatches
- Tip 77. Stake the Boundaries of a Word
- Tip 78. Stake the Boundaries of a Match
- Tip 79. Escape Problem Characters
-
13. Search
- Tip 80. Meet the Search Command
- Tip 81. Highlight Search Matches
- Tip 82. Preview the First Match Before Execution
- Tip 83. Offset the Cursor to the End of a Search Match
- Tip 84. Operate on a Complete Search Match
- Tip 85. Create Complex Patterns by Iterating upon Search History
- Tip 86. Count the Matches for the Current Pattern
- Tip 87. Search for the Current Visual Selection
-
14. Substitution
- Tip 88. Meet the Substitute Command
- Tip 89. Find and Replace Every Match in a File
- Tip 90. Eyeball Each Substitution
- Tip 91. Reuse the Last Search Pattern
- Tip 92. Replace with the Contents of a Register
- Tip 93. Repeat the Previous Substitute Command
- Tip 94. Rearrange CSV Fields Using Submatches
- Tip 95. Perform Arithmetic on the Replacement
- Tip 96. Swap Two or More Words
- Tip 97. Find and Replace Across Multiple Files
- 15. Global Commands
-
12. Matching Patterns and Literals
-
Part VI. Tools
- 16. Index and Navigate Source Code with ctags
- 17. Compile Code and Navigate Errors with the Quickfix List
- 18. Search Project-Wide with grep, vimgrep, and Others
-
19. Dial X for Autocompletion
- Tip 112. Meet Vim’s Keyword Autocompletion
- Tip 113. Work with the Autocomplete Pop-Up Menu
- Tip 114. Understand the Source of Keywords
- Tip 115. Autocomplete Words from the Dictionary
- Tip 116. Autocomplete Entire Lines
- Tip 117. Autocomplete Sequences of Words
- Tip 118. Autocomplete Filenames
- Tip 119. Autocomplete with Context Awareness
- 20. Find and Fix Typos with Vim’s Spell Checker
- 21. Now What?
- A1. Customize Vim to Suit Your Preferences
Product information
- Title: Practical Vim, 2nd Edition
- Author(s):
- Release date: October 2015
- Publisher(s): Pragmatic Bookshelf
- ISBN: 9781680501278
You might also like
book
Modern Vim
Turn Vim into a full-blown development environment using Vim 8's new features and this sequel to …
video
Vim Masterclass
Do you know that most of the command-line experts use the powerful features of the Vim …
book
Learning Modern Linux
If you use Linux in development or operations and need a structured approach to help you …
book
The Linux Programming Interface
The Linux Programming Interface is the definitive guide to the Linux and UNIX programming interface—the interface …