Acknowledgments |
|
xi | |
Foreword to the First Edition |
|
xv | |
Read Me |
|
xvii | |
Read the Forgotten Manual |
|
xix | |
|
|
1 | (14) |
|
Tip 1 Meet the Dot Command |
|
|
1 | (3) |
|
Tip 2 Don't Repeat Yourself |
|
|
4 | (2) |
|
Tip 3 Take One Step Back, Then Three Forward |
|
|
6 | (2) |
|
Tip 4 Act, Repeat, Reverse |
|
|
8 | (1) |
|
Tip 5 Find and Replace by Hand |
|
|
9 | (2) |
|
Tip 6 Meet the Dot Formula |
|
|
11 | (4) |
Part I Modes |
|
|
|
15 | (14) |
|
Tip 7 Pause with Your Brush Off the Page |
|
|
16 | (1) |
|
|
16 | (2) |
|
Tip 9 Compose Repeatable Changes |
|
|
18 | (2) |
|
Tip 10 Use Counts to Do Simple Arithmetic |
|
|
20 | (2) |
|
Tip 11 Don't Count If You Can Repeat |
|
|
22 | (2) |
|
Tip 12 Combine and Conquer |
|
|
24 | (5) |
|
|
29 | (10) |
|
Tip 13 Make Corrections Instantly from Insert Mode |
|
|
29 | (1) |
|
Tip 14 Get Back to Normal Mode |
|
|
30 | (1) |
|
Tip 15 Paste from a Register Without Leaving Insert Mode |
|
|
31 | (2) |
|
Tip 16 Do Back-of-the-Envelope Calculations in Place |
|
|
33 | (1) |
|
Tip 17 Insert Unusual Characters by Character Code |
|
|
34 | (1) |
|
Tip 18 Insert Unusual Characters by Digraph |
|
|
35 | (1) |
|
Tip 19 Overwrite Existing Text with Replace Mode |
|
|
36 | (3) |
|
|
39 | (14) |
|
|
39 | (2) |
|
Tip 21 Define a Visual Selection |
|
|
41 | (2) |
|
Tip 22 Repeat Line-Wise Visual Commands |
|
|
43 | (2) |
|
Tip 23 Prefer Operators to Visual Commands Where Possible |
|
|
45 | (2) |
|
Tip 24 Edit Tabular Data with Visual-Block Mode |
|
|
47 | (2) |
|
Tip 25 Change Columns of Text |
|
|
49 | (1) |
|
Tip 26 Append After a Ragged Visual Block |
|
|
50 | (3) |
|
|
53 | (30) |
|
Tip 27 Meet Vim's Command Line |
|
|
53 | (3) |
|
Tip 28 Execute a Command on One or More Consecutive Lines |
|
|
56 | (5) |
|
Tip 29 Duplicate or Move Lines Using ':t' and ':m' Commands |
|
|
61 | (2) |
|
Tip 30 Run Normal Mode Commands Across a Range |
|
|
63 | (2) |
|
Tip 31 Repeat the Last Ex Command |
|
|
65 | (2) |
|
Tip 32 Tab-Complete Your Ex Commands |
|
|
67 | (1) |
|
Tip 33 Insert the Current Word at the Command Prompt |
|
|
68 | (2) |
|
Tip 34 Recall Commands from History |
|
|
70 | (2) |
|
Tip 35 Run Commands in the Shell |
|
|
72 | (4) |
|
Tip 36 Run Multiple Ex Commands as a Batch |
|
|
76 | (7) |
Part II Files |
|
|
|
83 | (16) |
|
Tip 37 Track Open Files with the Buffer List |
|
|
83 | (3) |
|
Tip 38 Group Buffers into a Collection with the Argument List |
|
|
86 | (3) |
|
Tip 39 Manage Hidden Files |
|
|
89 | (3) |
|
Tip 40 Divide Your Workspace into Split Windows |
|
|
92 | (3) |
|
Tip 41 Organize Your Window Layouts with Tab Pages |
|
|
95 | (4) |
|
7 Open Files and Save Them to Disk |
|
|
99 | (14) |
|
Tip 42 Open a File by Its Filepath Using ':edit' |
|
|
99 | (3) |
|
Tip 43 Open a File by Its Filename Using ':find' |
|
|
102 | (2) |
|
Tip 44 Explore the File System with netrw |
|
|
104 | (3) |
|
Tip 45 Save Files to Nonexistent Directories |
|
|
107 | (1) |
|
Tip 46 Save a File as the Super User |
|
|
108 | (5) |
Part III Getting Around Faster |
|
|
8 Navigate Inside Files with Motions |
|
|
113 | (22) |
|
Tip 47 Keep Your Fingers on the Home Row |
|
|
114 | (2) |
|
Tip 48 Distinguish Between Real Lines and Display Lines |
|
|
116 | (2) |
|
|
118 | (2) |
|
|
120 | (4) |
|
Tip 51 Search to Navigate |
|
|
124 | (2) |
|
Tip 52 Trace Your Selection with Precision Text Objects |
|
|
126 | (3) |
|
Tip 53 Delete Around, or Change Inside |
|
|
129 | (2) |
|
Tip 54 Mark Your Place and Snap Back to It |
|
|
131 | (1) |
|
Tip 55 Jump Between Matching Parentheses |
|
|
132 | (3) |
|
9 Navigate Between Files with Jumps |
|
|
135 | (10) |
|
Tip 56 Traverse the Jump List |
|
|
135 | (2) |
|
Tip 57 Traverse the Change List |
|
|
137 | (1) |
|
Tip 58 Jump to the Filename Under the Cursor |
|
|
138 | (3) |
|
Tip 59 Snap Between Files Using Global Marks |
|
|
141 | (4) |
Part IV Registers |
|
|
|
145 | (16) |
|
Tip 60 Delete, Yank, and Put with Vim's Unnamed Register |
|
|
145 | (3) |
|
Tip 61 Grok Vim's Registers |
|
|
148 | (5) |
|
Tip 62 Replace a Visual Selection with a Register |
|
|
153 | (2) |
|
Tip 63 Paste from a Register |
|
|
155 | (3) |
|
Tip 64 Interact with the System Clipboard |
|
|
158 | (3) |
|
|
161 | (24) |
|
Tip 65 Record and Execute a Macro |
|
|
162 | (3) |
|
Tip 66 Normalize, Strike, Abort |
|
|
165 | (1) |
|
Tip 67 Play Back with a Count |
|
|
166 | (2) |
|
Tip 68 Repeat a Change on Contiguous Lines |
|
|
168 | (4) |
|
Tip 69 Append Commands to a Macro |
|
|
172 | (1) |
|
Tip 70 Act Upon a Collection of Files |
|
|
173 | (4) |
|
Tip 71 Evaluate an Iterator to Number Items in a List |
|
|
177 | (3) |
|
Tip 72 Edit the Contents of a Macro |
|
|
180 | (5) |
Part V Patterns |
|
|
12 Matching Patterns and Literals |
|
|
185 | (16) |
|
Tip 73 Tune the Case Sensitivity of Search Patterns |
|
|
186 | (1) |
|
Tip 74 Use the \v Pattern Switch for Regex Searches |
|
|
187 | (2) |
|
Tip 75 Use the \V Literal Switch for Verbatim Searches |
|
|
189 | (2) |
|
Tip 76 Use Parentheses to Capture Submatches |
|
|
191 | (2) |
|
Tip 77 Stake the Boundaries of a Word |
|
|
193 | (1) |
|
Tip 78 Stake the Boundaries of a Match |
|
|
194 | (1) |
|
Tip 79 Escape Problem Characters |
|
|
195 | (6) |
|
|
201 | (18) |
|
Tip 80 Meet the Search Command |
|
|
201 | (3) |
|
Tip 81 Highlight Search Matches |
|
|
204 | (1) |
|
Tip 82 Preview the First Match Before Execution |
|
|
205 | (1) |
|
Tip 83 Offset the Cursor to the End of a Search Match |
|
|
206 | (2) |
|
Tip 84 Operate on a Complete Search Match |
|
|
208 | (3) |
|
Tip 85 Create Complex Patterns by Iterating upon Search History |
|
|
211 | (3) |
|
Tip 86 Count the Matches for the Current Pattern |
|
|
214 | (2) |
|
Tip 87 Search for the Current Visual Selection |
|
|
216 | (3) |
|
|
219 | (22) |
|
Tip 88 Meet the Substitute Command |
|
|
220 | (2) |
|
Tip 89 Find and Replace Every Match in a File |
|
|
222 | (1) |
|
Tip 90 Eyeball Each Substitution |
|
|
223 | (2) |
|
Tip 91 Reuse the Last Search Pattern |
|
|
225 | (1) |
|
Tip 92 Replace with the Contents of a Register |
|
|
226 | (3) |
|
Tip 93 Repeat the Previous Substitute Command |
|
|
229 | (3) |
|
Tip 94 Rearrange CSV Fields Using Submatches |
|
|
232 | (1) |
|
Tip 95 Perform Arithmetic on the Replacement |
|
|
233 | (1) |
|
Tip 96 Swap Two or More Words |
|
|
234 | (2) |
|
Tip 97 Find and Replace Across Multiple Files |
|
|
236 | (5) |
|
|
241 | (12) |
|
Tip 98 Meet the Global Command |
|
|
241 | (1) |
|
Tip 99 Delete Lines Containing a Pattern |
|
|
242 | (2) |
|
Tip 100 Collect TODO Items in a Register |
|
|
244 | (2) |
|
Tip 101 Alphabetize the Properties of Each Rule in a CSS File |
|
|
246 | (7) |
Part VI Tools |
|
|
16 Index and Navigate Source Code with ctags |
|
|
253 | (10) |
|
|
253 | (3) |
|
Tip 103 Configure Vim to Work with ctags |
|
|
256 | (2) |
|
Tip 104 Navigate Keyword Definitions with Vim's Tag Navigation Commands |
|
|
258 | (5) |
|
17 Compile Code and Navigate Errors with the Quickfix List |
|
|
263 | (10) |
|
Tip 105 Compile Code Without Leaving Vim |
|
|
264 | (2) |
|
Tip 106 Browse the Quickfix List |
|
|
266 | (3) |
|
Tip 107 Recall Results from a Previous Quickfix List |
|
|
269 | (1) |
|
Tip 108 Customize the External Compiler |
|
|
269 | (4) |
|
18 Search Project-Wide with grep, vimgrep, and Others |
|
|
273 | (8) |
|
Tip 109 Call grep Without Leaving Vim |
|
|
273 | (2) |
|
Tip 110 Customize the grep Program |
|
|
275 | (2) |
|
Tip 111 Grep with Vim's Internal Search Engine |
|
|
277 | (4) |
|
19 Dial X for Autocompletion |
|
|
281 | (14) |
|
Tip 112 Meet Vim's Keyword Autocompletion |
|
|
281 | (2) |
|
Tip 113 Work with the Autocomplete Pop-Up Menu |
|
|
283 | (2) |
|
Tip 114 Understand the Source of Keywords |
|
|
285 | (3) |
|
Tip 115 Autocomplete Words from the Dictionary |
|
|
288 | (1) |
|
Tip 116 Autocomplete Entire Lines |
|
|
288 | (2) |
|
Tip 117 Autocomplete Sequences of Words |
|
|
290 | (1) |
|
Tip 118 Autocomplete Filenames |
|
|
291 | (2) |
|
Tip 119 Autocomplete with Context Awareness |
|
|
293 | (2) |
|
20 Find and Fix Typos with Vim's Spell Checker |
|
|
295 | (6) |
|
Tip 120 Spell Check Your Work |
|
|
295 | (2) |
|
Tip 121 Use Alternate Spelling Dictionaries |
|
|
297 | (1) |
|
Tip 122 Add Words to the Spell File |
|
|
298 | (1) |
|
Tip 123 Fix Spelling Errors from Insert Mode |
|
|
299 | (2) |
|
|
301 | (2) |
|
|
301 | (1) |
|
|
301 | (1) |
|
Know the Saw, Then Sharpen It |
|
|
302 | (1) |
A1 Customize Vim to Suit Your Preferences |
|
303 | (4) |
|
Change Vim's Settings on the Fly |
|
|
303 | (1) |
|
Save Your Configuration in a vimrc File |
|
|
304 | (2) |
|
Apply Customizations to Certain Types of Files |
|
|
306 | (1) |
Index |
|
307 | |