Basics: Changelist?

This commit is contained in:
Marco Hinz 2016-01-11 23:46:12 +01:00
parent 51f0117fd6
commit b479b3df73
2 changed files with 18 additions and 0 deletions

View File

@ -7,6 +7,7 @@ All notable changes to this project will be documented in this file.
### Added ### Added
- Basics: [Marks?](README.md#marks) - Basics: [Marks?](README.md#marks)
- Basics: [Changelist?](README.md#changelist)
- Tips: [Saner command-line history](README.md#saner-command-line-history) - Tips: [Saner command-line history](README.md#saner-command-line-history)
- Usage: [Editing remote files](README.md#editing-remote-files) - Usage: [Editing remote files](README.md#editing-remote-files)
- Usage: [Restore cursor position when opening file](#restore-cursor-position-when-opening-file) - Usage: [Restore cursor position when opening file](#restore-cursor-position-when-opening-file)

View File

@ -18,6 +18,7 @@ added every day. Things about to be added can be found here:
- [Marks?](#marks) - [Marks?](#marks)
- [Motions? Operators? Text objects?](#motions-operators-text-objects) - [Motions? Operators? Text objects?](#motions-operators-text-objects)
- [Autocmds?](#autocmds) - [Autocmds?](#autocmds)
- [Changelist?](#changelist)
- [Quickfix and location lists?](#quickfix-and-location-lists) - [Quickfix and location lists?](#quickfix-and-location-lists)
- [Colorschemes?](#colorschemes) - [Colorschemes?](#colorschemes)
- [Locality?](#locality) - [Locality?](#locality)
@ -403,6 +404,22 @@ Putting it in a nutshell, Vim makes heavy use of events and autocmds but also
exposes a clean interface to hook into that event-driven system for exposes a clean interface to hook into that event-driven system for
customization. customization.
#### Changelist
The positions of the last 100 changes are kept in the changelist.
Several small changes on the same line will be merged together, but the position
will be that of the last change nevertheless (in case you added something in the
middle of the line).
Get the full list with `:changes`. A marker `>` will be used to show the current
position in the list. Usually that will be below change 1, the latest change.
Use `g;` or `g,` to go an older or newer position respectively. These also take
a count, e.g. `999g;` takes you to the oldest remembered position.
Related help: `:h changelist`
#### Quickfix and location lists? #### Quickfix and location lists?
Every time an action has to return a list of locations, _quickfix_ or _location_ Every time an action has to return a list of locations, _quickfix_ or _location_