How to become a practical Vim user ujihisa.vim#3 2012-11-03 @kana1
It was very hard to master Vim Too many features to learn Odd behavior for backward compatibility Esoteric language to customize
Too many features to learn
Too many Ex commands
Too many functions
Too many documents
Odd behavior Useful features are turned off by default Syntax highlighting Automatic indentation per filetype Command-line completion and so on
Odd behavior :map is recursively expanded <BS> cannot delete indent by default and so on
Esoteric language to customize
But... People rumor thatVim is one of the most invaluable skill
Now it’s very easy to master Vim
Practical Vim by Drew Neil
Why Practical Vim is great Organized well to boost your productivity Focused on mastering built-in features
Organized well Organized by useful theme Can be read in any order Progress from simple to advanced
Organized by useful theme 1. The Vim Way 2. Normal Mode 3. Insert Mode 4. Visual Mode 5. Command-Line Mode 6. Manage Multiple Files 7. Open Files and Save Them to Disk 8. Navigate Inside Files with Motions 9. Navigate Between Files with Jumps 10. Copy and Paste 11. Macros 12. Matching Patterns and Literals 13. Search 14. Substitution 15. Global Commands 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 20. Find and Fix Typos with Vim’s Spell Checker 21. Now What?
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.
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
Focused on mastering built-in features Not only how to use,but also how to combine
Focused on mastering built-in features Tip 1. Meet the dot command→ Learn what the dot command doesdw. = dwdw Tip 9. Compose repeatable changes→ Learn how to effectively use the dot Bad: dbx, bdw Good: daw
Focused on mastering built-in features Tip 10. Use counts to do simple arithmetic→ Learn how to use countsd2w = 2dw = dwdw Tip 11. Don’t count if you can repeat→ Learn when to use countsdw... rather than d4w and 4dw
Conclusion If you are not a Vim wizard:→ Buy Practical Vim! If you are already a Vim wizard:→ Share your magics!
But Focused on mastering built-in features Not a book for how to tune up Vim for you Therefore