Muutke küpsiste eelistusi

Practical Vim: Edit Text at the Speed of Thought [Pehme köide]

4.50/5 (2267 hinnangut Goodreads-ist)
  • Formaat: Paperback / softback, 300 pages, kõrgus x laius: 229x191 mm, Illustrations
  • Ilmumisaeg: 06-Nov-2012
  • Kirjastus: The Pragmatic Programmers
  • ISBN-10: 1934356980
  • ISBN-13: 9781934356982
Teised raamatud teemal:
  • Pehme köide
  • Hind: 36,33 €*
  • * saadame teile pakkumise kasutatud raamatule, mille hind võib erineda kodulehel olevast hinnast
  • See raamat on trükist otsas, kuid me saadame teile pakkumise kasutatud raamatule.
  • Kogus:
  • Lisa ostukorvi
  • Tasuta tarne
  • Lisa soovinimekirja
  • Formaat: Paperback / softback, 300 pages, kõrgus x laius: 229x191 mm, Illustrations
  • Ilmumisaeg: 06-Nov-2012
  • Kirjastus: The Pragmatic Programmers
  • ISBN-10: 1934356980
  • ISBN-13: 9781934356982
Teised raamatud teemal:
Programmer, writer, and trainer Neil explains only the core functions of the text editor software Vim, figuring that once people are familiar with those, they can configure the system themselves. This is a recipe book not a tutorial, he says, and encourages readers to jump around to the parts that interest them or that they need at a particular time. Each chapter, however, progresses from simple to more complex. Among the topics are insert mode, command-line mode, navigating between files with jumps, substitution, and finding and fixing typos with Vim's spell checker. Distributed in the US by O'Reilly Media. Annotation ©2013 Book News, Inc., Portland, OR (booknews.com)

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--if you master the techniques in this book, you'll never need another text editor. Practical Vim shows you 120 vim recipes so you can quickly learn the editor's core functionality and tackle your trickiest editing and writing tasks.

Vim, like its classic ancestor vi, is a serious tool for programmers, web developers, and sysadmins. No other text editor comes close to Vim for speed and efficiency; it runs on almost every system imaginable and supports most coding and markup languages.

Learn how to edit text the "Vim way:" complete a series of repetitive changes with The Dot Formula, using one keystroke to strike the target, followed by one keystroke to execute the change. Automate complex tasks by recording your keystrokes as a macro. Run the same command on a selection of lines, or a set of files.

Discover the "very magic" switch, which makes Vim's regular expression syntax more like Perl's. Build complex patterns by iterating on your search history. Search inside multiple files, then run Vim's substitute command on the result set for a project-wide search and replace. All without installing a single plugin!

You'll learn how to navigate text documents as fast as the eye moves--with only a few keystrokes. Jump from a method call to its definition with a single command. Use Vim's jumplist, so that you can always follow the breadcrumb trail back to the file you were working on before. Discover a multilingual spell-checker that does what it's told.

Practical Vim will show you new ways to work with Vim more efficiently, whether you're a beginner or an intermediate Vim user.

All this, without having to touch the mouse.

What You Need:

Vim version 7

Acknowledgments xi
Foreword xiii
Read Me xv
Read the Forgotten Manual xvii
1 The Vim Way
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
2 Normal Mode
15(12)
Tip 7 Pause with Your Brush Off the Page
15(1)
Tip 8 Chunk Your Undos
16(1)
Tip 9 Compose Repeatable Changes
17(3)
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(3)
3 Insert Mode
27(10)
Tip 13 Make Corrections Instantly from Insert Mode
27(1)
Tip 14 Get Back to Normal Mode
28(1)
Tip 15 Paste from a Register Without Leaving Insert Mode
29(2)
Tip 16 Do Back-of-the-Envelope Calculations in Place
31(1)
Tip 17 Insert Unusual Characters by Character Code
32(1)
Tip 18 Insert Unusual Characters by Digraph
33(1)
Tip 19 Overwrite Existing Text with Replace Mode
34(3)
4 Visual Mode
37(14)
Tip 20 Grok Visual Mode
37(2)
Tip 21 Define a Visual Selection
39(2)
Tip 22 Repeal Line-Wise Visual Commands
41(2)
Tip 23 Prefer Operators to Visual Commands Where Possible
43(2)
Tip 24 Edit Tabular Data with Visual-Block Mode
45(2)
Tip 25 Change Columns of Text
47(1)
Tip 26 Append After a Ragged Visual Block
48(3)
5 Command-Line Mode
51(26)
Tip 27 Meet Vim's Command Line
51(3)
Tip 28 Execute a Command on One or More Consecutive Lines
54(5)
Tip 29 Duplicate or Move Lines Using `:t' and `:m' Commands
59(2)
Tip 30 Run Normal Mode Commands Across a Range
61(2)
Tip 31 Repeal llie Last Ex Command
63(2)
Tip 32 Tab-Complele Your Ex Commands
65(1)
Tip 33 Insert the Current Word at the Command Prompt
66(2)
Tip 34 Recall Commands from History
68(3)
Tip 35 Run Commands in the Shell
71(6)
Part II Files
6 Manage Multiple Files
77(16)
Tip 36 Track Open Files with the Buffer List
77(3)
Tip 37 Group Buffers into a Collection with the Argument List
80(3)
Tip 38 Manage Hidden Files
83(2)
Tip 39 Divide Your Workspace into Split Windows
85(4)
Tip 40 Organize Your Window Layouts with Tab Pages
89(4)
7 Open Files and Save Them to Disk
93(14)
Tip 41 Open a File by Its Filepath Using `:edit'
93(3)
Tip 42 Open a File by Its Filename Using `:find'
96(2)
Tip 43 Explore the File System with netrw
98(3)
Tip 44 Save Files to Nonexistent Directories
101(1)
Tip 45 Save a File as the Super User
102(5)
Part III Getting Around Faster
8 Navigate Inside Files with Motions
107(24)
Tip 46 Keep Your Fingers on the Home Row
108(2)
Tip 47 Distinguish Between Real Lines and Display Lines
110(2)
Tip 48 Move Word-Wise
112(2)
Tip 49 Find by Character
114(4)
Tip 50 Search to Navigate
118(2)
Tip 51 Trace Your Selection with Precision Text Objects
120(4)
Tip 52 Delete Around, or Change Inside
124(2)
Tip 53 Mark Your Place and Snap Back to It
126(1)
Tip 54 Jump Between Matching Parentheses
127(4)
9 Navigate Between Files with Jumps
131(10)
Tip 55 Traverse the Jump List
131(2)
Tip 56 Traverse the Change List
133(1)
Tip 57 Jump to the Filename Under the Cursor
134(3)
Tip 58 Snap Between Files Using Global Marks
137(4)
Part IV Registers
10 Copy and Paste
141(16)
Tip 59 Delete, Yank, and Put with Vim's Unnamed Register
141(3)
Tip 60 Grok Vim's Registers
144(5)
Tip 61 Replace a Visual Selection with a Register
149(2)
Tip 62 Paste from a Register
151(3)
Tip 63 Interact with the System Clipboard
154(3)
11 Macros
157(26)
Tip 64 Record and Execute a Macro
158(3)
Tip 65 Normalize, Strike, Abort
161(2)
Tip 66 Play Back with a Count
163(1)
Tip 67 Repeat a Change on Contiguous Lines
164(4)
Tip 68 Append Commands to a Macro
168(1)
Tip 69 Act Upon a Collection of Files
169(5)
Tip 70 Evaluate an Iterator to Number Items in a List
174(2)
Tip 71 Edit the Contents of a Macro
176(7)
Part V Patterns
12 Matching Patterns and Literals
183(16)
Tip 72 Tune the Case Sensitivity of Search Patterns
183(1)
Tip 73 Use the \v Pattern Switch for Regex Searches
184(3)
Tip 74 Use the \V Literal Switch for Verbatim Searches
187(2)
Tip 75 Use Parentheses to Capture Submatches
189(1)
Tip 76 Stake the Boundaries of a Word
190(2)
Tip 77 Stake the Boundaries of a Match
192(1)
Tip 78 Escape Problem Characters
193(6)
13 Search
199(16)
Tip 79 Meet the Search Command
199(2)
Tip 80 Highlight Search Matches
201(1)
Tip 81 Preview the First Match Before Execution
202(2)
Tip 82 Count the Matches for the Current Pattern
204(1)
Tip 83 Offset the Cursor to the End of a Search Match
204(2)
Tip 84 Operate on a Complete Search Match
206(3)
Tip 85 Create Complex Patterns by Iterating upon Search History
209(3)
Tip 86 Search for the Current Visual Selection
212(3)
14 Substitution
215(22)
Tip 87 Meet the Substitute Command
216(1)
Tip 88 Find and Replace Every Match in a File
217(2)
Tip 89 Eyeball Each Substitution
219(1)
Tip 90 Reuse the Last Search Pattern
220(2)
Tip 91 Replace with the Contents of a Register
222(2)
Tip 92 Repeat the Previous Substitute Command
224(4)
Tip 93 Rearrange CSV Fields Using Submatches
228(1)
Tip 94 Perform Arithmetic on the Replacement
229(1)
Tip 95 Swap Two or More Words
230(3)
Tip 96 Find and Replace Across Multiple Files
233(4)
15 Global Commands
237(12)
Tip 97 Meet the Global Command
237(1)
Tip 98 Delete Lines Containing a Pattern
238(2)
Tip 99 Collect TODO Items in a Register
240(2)
Tip 100 Alphabetize the Properties of Each Rule in a CSS File
242(7)
Part VI Tools
16 Index and Navigate Source Code with ctags
249(10)
Tip 101 Meet ctags
249(3)
Tip 102 Configure Vim to Work with ctags
252(2)
Tip 103 Navigate Keyword Definitions with Vim's Tag Navigation Commands
254(5)
17 Compile Code and Navigate Errors with the Quickfix List
259(10)
Tip 104 Compile Code Without Leaving Vim
260(2)
Tip 105 Browse the Quickfix List
262(3)
Tip 106 Recall Results from a Previous Quickfix List
265(1)
Tip 107 Customize the External Compiler
265(4)
18 Search Project-Wide with grep, vimgrep, and Others
269(6)
Tip 108 Call grep Without Leaving Vim
269(2)
Tip 109 Customize the grep Program
271(2)
Tip 110 Grep with Vim's Internal Search Engine
273(2)
19 Dial X for Autocompletion
275(12)
Tip 111 Meet Vim's Keyword Autocompletion
275(2)
Tip 112 Work with the Autocomplete Pop-Up Menu
277(2)
Tip 113 Understand the Source of Keywords
279(2)
Tip 114 Autocomplete Words from the Dictionary
281(1)
Tip 115 Autocomplete Entire Lines
282(1)
Tip 116 Autocomplete Filenames
283(2)
Tip 117 Autocomplete with Context Awareness
285(2)
20 Find and Fix Typos with Vim's Spell Checker
287(6)
Tip 118 Spell Check Your Work
287(2)
Tip 119 Use Alternate Spelling Dictionaries
289(1)
Tip 120 Add Words to the Spell File
290(1)
Tip 121 Fix Spelling Errors from Insert Mode
291(2)
21 Now What?
293(2)
21.1 Keep Practicingl
293(1)
21.2 Make Vim Your Own
293(1)
21.3 Know the Saw, Then Sharpen It
294(1)
A1 Customize Vim to Suit Your Preferences
295(4)
A1.1 Change Vim's Sellings on the Fly
295(1)
A1.2 Save Your Configuration in a vimre File
296(2)
A1.3 Apply Customizations to Certain Types of Files
298(1)
Index 299
Drew Neil is an independent programmer, writer, and trainer. He runs workshops around the world, speaks regularly at conferences, and specializes in making educational screencasts. At vimcasts.org, he publishes articles and video tutorials about Vim.