PracticalVim Tip28 - yszheda/wiki GitHub Wiki
Try replacing `:print` in the following examples with `:delete`/`:join`/`:substitute`/`:normal`.
`:p` is short for `:print`
Example:
- `:{start},{end}`: specify a range
- `.`: the current line
- `%`: all the lines in the current file
- `'<`: the first line of the visual selection
- `'>`: the last line of the visual selection
Example:
Example:
The general form for an offset: `:{address}+n`
- If `n` is omitted, it defaults to 1.
- `{address}` can be a line number, a mark, or a pattern.
| Symbol | Address | | 1 | First line of the file | | $ | Last line of the file | | 0 | Virtual line above first line of the file | | . | Line where the cursor is placed | | 'm | Line containing mark `m` | | '< | Start of visual selection | | '> | End of visual selection | | % | The entire file (shorthand for `:1,$`) |