Practical-Vim-Notes

1. The Vim Way

Part I — Modes

2. Normal Mode

3. Insert Mode

4. Visual Mode

5. Command-Line Mode

Part II — Files

6. Manage Multiple Files

Part III — Getting Around Faster

8. Navigate Inside Files with Motions

9. Navigate Between Files with Jumps

Part IV — Registers

10. Copy and Paste

11. Macros

Part V — Patterns

12. Matching Patterns and Literals

13. Search

  • Tip 79. Meet the Search Command
  • Tip 80. Highlight Search Matches
  • Tip 81. Preview the First Match Before Execution
  • Tip 82. Count the Matches for the Current Pattern
  • 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. Search for the Current Visual Selection

14. Substitution

  • Tip 87. Meet the Substitute Command
  • Tip 88. Find and Replace Every Match in a File
  • Tip 89. Eyeball Each Substitution
  • Tip 90. Reuse the Last Search Pattern
  • Tip 91. Replace with the Contents of a Register
  • Tip 92. Repeat the Previous Substitute Command
  • Tip 93. Rearrange CSV Fields Using Submatches
  • Tip 94. Perform Arithmetic on the Replacement
  • Tip 95. Swap Two or More Words
  • Tip 96. Find and Replace Across Multiple Files

15. Global Commands

  • Tip 97. Meet the Global Command
  • Tip 98. Delete Lines Containing a Pattern
  • Tip 99. Collect TODO Items in a Register
  • Tip 100. Alphabetize the Properties of Each Rule in a CSS File

Part VI — Tools

16. Index and Navigate Source Code with ctags

  • Tip 101. Meet ctags
  • Tip 102. Configure Vim to Work with ctags
  • Tip 103. Navigate Keyword Definitions with Vim’s Tag Navigation Commands

17. Compile Code and Navigate Errors with the Quickfix List

  • Tip 104. Compile Code Without Leaving Vim
  • Tip 105. Browse the Quickfix List
  • Tip 106. Recall Results from a Previous Quickfix List
  • Tip 107. Customize the External Compiler

18. Search Project-Wide with grep, vimgrep, and Others

  • Tip 108. Call grep Without Leaving Vim
  • Tip 109. Customize the grep Program
  • Tip 110. Grep with Vim’s Internal Search Engine

19. Dial X for Autocompletion

  • Tip 111. Meet Vim’s Keyword Autocompletion
  • Tip 112. Work with the Autocomplete Pop-Up Menu
  • Tip 113. Understand the Source of Keywords
  • Tip 114. Autocomplete Words from the Dictionary
  • Tip 115. Autocomplete Entire Lines
  • Tip 116. Autocomplete Filenames
  • Tip 117. Autocomplete with Context Awareness

20. Find and Fix Typos with Vim’s Spell Checker

  • Tip 118. Spell Check Your Work
  • Tip 119. Use Alternate Spelling Dictionaries
  • Tip 120. Add Words to the Spell File
  • Tip 121. Fix Spelling Errors from Insert Mode

21. Now What?

  • 21.1 Keep Practicing!
  • 21.2 Make Vim Your Own
  • 21.3 Know the Saw, Then Sharpen It