From 1ea9739ab152f5d965e7c5d2566d9e5db392296d Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 11 Aug 2015 13:44:07 +0100 Subject: [PATCH] Document special registers --- README.asciidoc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.asciidoc b/README.asciidoc index c8078d69..ae0ab7b2 100644 --- a/README.asciidoc +++ b/README.asciidoc @@ -808,6 +808,16 @@ selection. Registers are lists, instead of simply text in order to interact well with multiselection. Each selection has its own captures or yank buffer. +Special registers +^^^^^^^^^^^^^^^^^ + +Some registers are not general purposes, they cannot be written to, but they +contain some special data: + + * `%`: current buffer name + * `.`: current selection contents + * `#`: selection indices (first selection has 1, second has 2, ...) + Macros ~~~~~~