Try these examples:
- Enter :help to browse help. Scroll down the help page to see the quickref and tutor links, and the table of contents.
- Enter :help pattern for help on the topic pattern (for example).
- :h pattern is the same (the :help command can be abbreviated).
Command completion can be used when entering a help topic:
- Type :h patt then press Ctrl-D to list all topics that contain "patt".
- Type :h patt then press Tab to scroll through the topics that start with "patt".
- If you have set the 'wildmenu' option (e.g. by using :set wildmenu), then :h patt followed by
opens a menu on the statusline, with all help topics containing "patt". You can select any item in the menu with the arrow keys or more presses of the key to fill in the rest of your command line.
Links:
- Enter :h to open the main help page.
- Type /quick to search for "quick" (should find the quickref link).
- Press Ctrl-] to follow the link (jump to the quickref topic).
- After browsing the quickref topic, press Ctrl-T to go back to the previous topic.
- You can also press Ctrl-O to jump to older locations, or Ctrl-I to jump to newer locations.
Searching:
- Search within a help file using / like you would when searching any file.
- Search all the help files with the :helpgrep command, for example:
- :helpgrep \csearch.\{,12}file
- \c means the pattern is case insensitive.
- The pattern finds "search" then up to 12 characters followed by "file".
- You will then see the first match. To see other matches for the same pattern, use:
- :cnext
- :cprev
- :cnfile
- :cpfile
- :cfirst
- :clast
- and even
- :cc
- which brings you back to the current match after you scrolled the helpfile, or
- :copen
- which will list out all the matches in a separate window. Read up on these commands with the :help entry for each of them!
Each week (or more often if you prefer), read a new section from the :help page to learn something new!