From b479b3df73cd1e79114db3cd58d777a5f68007d8 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Mon, 11 Jan 2016 23:46:12 +0100 Subject: [PATCH] Basics: Changelist? --- CHANGELOG.md | 1 + README.md | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f107385..f6024f7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ All notable changes to this project will be documented in this file. ### Added - Basics: [Marks?](README.md#marks) +- Basics: [Changelist?](README.md#changelist) - Tips: [Saner command-line history](README.md#saner-command-line-history) - Usage: [Editing remote files](README.md#editing-remote-files) - Usage: [Restore cursor position when opening file](#restore-cursor-position-when-opening-file) diff --git a/README.md b/README.md index a5ebcab..0a77bf8 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,7 @@ added every day. Things about to be added can be found here: - [Marks?](#marks) - [Motions? Operators? Text objects?](#motions-operators-text-objects) - [Autocmds?](#autocmds) +- [Changelist?](#changelist) - [Quickfix and location lists?](#quickfix-and-location-lists) - [Colorschemes?](#colorschemes) - [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 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? Every time an action has to return a list of locations, _quickfix_ or _location_