Table of contents
Getting Started
Read this from start to end to learn the essential commands.
01. About the manuals
02. The first steps in Vim
- Running Vim for the First Time
- Inserting text
- Moving around
- Deleting characters
- Undo and Redo
- Other editing commands
- Getting out
- Finding help
03. Moving around
- Word movement
- Moving to the start or end of a line
- Moving to a character
- Matching a paren
- Moving to a specific line
- Telling where you are
- Scrolling around
- Simple searches
- Simple search patterns
- Using marks
04. Making small changes
- Operators and motions
- Changing text
- Repeating a change
- Visual mode
- Moving text
- Copying text
- Using the clipboard
- Text objects
- Replace mode
- Conclusion
05. Set your settings
- The vimrc file
- The example vimrc file explained
- The defaults.vim file explained
- Simple mappings
- Adding a package
- Adding a plugin
- Adding a help file
- The option window
- Often used options
06. Using syntax highlighting
- Switching it on
- No or wrong colors?
- Different colors
- With colors or without colors
- Printing with colors
- Further reading
07. Editing more than one file
- Edit another file
- A list of files
- Jumping from file to file
- Backup files
- Copy text between files
- Viewing a file
- Changing the file name
08. Splitting windows
- Split a window
- Split a window on another file
- Window size
- Vertical splits
- Moving windows
- Commands for all windows
- Viewing differences with vimdiff
- Various
09. Using the GUI
10. Making big changes
- Record and playback commands
- Substitution
- Command ranges
- The global command
- Visual block mode
- Reading and writing part of a file
- Formatting text
- Changing case
- Using an external program
11. Recovering from a crash
12. Clever tricks
- Replace a word
- Change "Last, First" to "First Last"
- Sort a list
- Reverse line order
- Count words
- Find a man page
- Trim blanks
- Find where a word is used
Editing Effectively
Subjects that can be read independently.
20. Typing command-line commands quickly
- Command line editing
- Command line abbreviations
- Command line completion
- Command line history
- Command line window
21. Go away and come back
- Suspend and resume
- Executing shell commands
- Remembering information; viminfo
- Sessions
- Views
- Modelines
22. Finding the file to edit
23. Editing other files
24. Inserting quickly
- Making corrections
- Showing matches
- Completion
- Repeating an insert
- Copying from another line
- Inserting a register
- Abbreviations
- Entering special characters
- Digraphs
- Normal mode commands
25. Editing formatted text
26. Repeating
- Repeating with Visual mode
- Add and subtract
- Making a change in many files
- Using Vim from a shell script
27. Search commands and patterns
- Ignoring case
- Wrapping around the file end
- Offsets
- Matching multiple times
- Alternatives
- Character ranges
- Character classes
- Matching a line break
- Examples
28. Folding
- What is folding?
- Manual folding
- Working with folds
- Saving and restoring folds
- Folding by indent
- Folding with markers
- Folding by syntax
- Folding by expression
- Folding unchanged lines
- Which fold method to use?
29. Moving through programs
- Using tags
- The preview window
- Moving through a program
- Finding global identifiers
- Finding local identifiers
30. Editing programs
31. Exploiting the GUI
32. The undo tree
Tuning Vim
Make Vim work as you like it.
40. Make new commands
41. Write a Vim script
- Introduction
- Variables
- Expressions
- Conditionals
- Executing an expression
- Using functions
- Defining a function
- Lists and Dictionaries
- Exceptions
- Various remarks
- Writing a plugin
- Writing a filetype plugin
- Writing a compiler plugin
- Writing a plugin that loads quickly
- Writing library scripts
- Distributing Vim scripts
42. Add new menus
43. Using filetypes
44. Your own syntax highlighted
- Basic syntax commands
- Keywords
- Matches
- Regions
- Nested items
- Following groups
- Other arguments
- Clusters
- Including another syntax file
- Synchronizing
- Installing a syntax file
- Portable syntax file layout
45. Select your language
- Language for Messages
- Language for Menus
- Using another encoding
- Editing files with a different encoding
- Entering language text
Making Vim Run
Before you can use Vim.