Practical Vim by Drew Neil is an organized guide to mastering Vim. It focuses on using Vim's built-in features by progressing from simple to advanced techniques. The book is organized by useful themes and chapters can be read in any order. It helps boost productivity by teaching readers to combine features like the dot command, counts, and repeats to perform efficient edits. While focused on built-ins, it does not cover customizing Vim scripts. An advanced book on practical Vim scripting would be a useful companion.
1 of 73
Downloaded 51 times
More Related Content
How to become a practical Vim user
1. How to become
a practical Vim user
ujihisa.vim#3 2012-11-03
@kana1
16. Odd behavior
• Useful features are turned off by default
• Syntax highlighting
• Automatic indentation per filetype
17. Odd behavior
• Useful features are turned off by default
• Syntax highlighting
• Automatic indentation per filetype
• Command-line completion
18. Odd behavior
• Useful features are turned off by default
• Syntax highlighting
• Automatic indentation per filetype
• Command-line completion
• and so on
45. Organized by
useful theme
• 1. The Vim Way • 12. Matching Patterns and Literals
• 2. Normal Mode • 13. Search
• 3. Insert Mode • 14. Substitution
• 4.Visual Mode • 15. Global Commands
• 5. Command-Line Mode • 16. Index and Navigate Source Code with ctags
• 6. Manage Multiple Files • 17. Compile Code and Navigate Errors with
the Quickfix List
• 7. Open Files and Save Them to Disk
• 18. Search Project-Wide with grep, vimgrep,
• 8. Navigate Inside Files with Motions and Others
• 9. Navigate Between Files with Jumps • 19. Dial X for Autocompletion
• 10. Copy and Paste • 20. Find and Fix Typos with Vim’s Spell Checker
• 11. Macros • 21. Now What?
47. Can be read
in any order
• If you are an experienced user:
→ Read interesting tips,
then move the book around as you need.
48. Can be read
in any order
• If you are an experienced user:
→ Read interesting tips,
then move the book around as you need.
• If you are a novice:
→ Read from the first to the last.
Chapters are organized so.
51. Progress from
simple to advanced
11. Macros
Tip 64. Record and Execute a Macro
52. Progress from
simple to advanced
11. Macros
Tip 64. Record and Execute a Macro
Tip 65. Normalize, Strike, Abort
Tip 66. Play Back with a Count
Tip 67. Repeat a Change on Contiguous Lines
Tip 68. Append Commands to a Macro
Tip 69. Act Upon a Collection of Files
Tip 70. Evaluate an Iterator to Number Items in a List
53. Progress from
simple to advanced
11. Macros
Tip 64. Record and Execute a Macro
Tip 65. Normalize, Strike, Abort
Tip 66. Play Back with a Count
Tip 67. Repeat a Change on Contiguous Lines
Tip 68. Append Commands to a Macro
Tip 69. Act Upon a Collection of Files
Tip 70. Evaluate an Iterator to Number Items in a List
Tip 71. Edit the Contents of a Macro
54. Progress from
simple to advanced
11. Macros
Tip 64. Record and Execute a Macro
Tip 65. Normalize, Strike, Abort
Tip 66. Play Back with a Count
Tip 67. Repeat a Change on Contiguous Lines
Tip 68. Append Commands to a Macro
Tip 69. Act Upon a Collection of Files
Tip 70. Evaluate an Iterator to Number Items in a List
Tip 71. Edit the Contents of a Macro
55. Progress from
simple to advanced
11. Macros
Tip 64. Record and Execute a Macro
Tip 65. Normalize, Strike, Abort
Tip 66. Play Back with a Count
Tip 67. Repeat a Change on Contiguous Lines
Tip 68. Append Commands to a Macro
Tip 69. Act Upon a Collection of Files
Tip 70. Evaluate an Iterator to Number Items in a List
Tip 71. Edit the Contents of a Macro
59. Focused on mastering
built-in features
• Tip 1. Meet the dot command
→ Learn what the dot command does
dw. = dwdw
60. Focused on mastering
built-in features
• Tip 1. Meet the dot command
→ Learn what the dot command does
dw. = dwdw
• Tip 9. Compose repeatable changes
→ Learn how to effectively use the dot
Bad: dbx, bdw
Good: daw
62. Focused on mastering
built-in features
• Tip 10. Use counts to do simple arithmetic
→ Learn how to use counts
d2w = 2dw = dwdw
63. Focused on mastering
built-in features
• Tip 10. Use counts to do simple arithmetic
→ Learn how to use counts
d2w = 2dw = dwdw
• Tip 11. Don’t count if you can repeat
→ Learn when to use counts
dw... rather than d4w and 4dw