From 4600b76efe80c9ba0461276412e58992d2300cae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Fri, 13 Jan 2017 13:18:44 +0100 Subject: vis: introduce registers 0-9 and & to capture search matches These are currently only updated for `x` and `y` sam commands, whether they should be updated for other search related activities (`/`, `?`, `n`, `N`, `*`, `#` etc.) needs to be investigated. --- vis.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'vis.h') diff --git a/vis.h b/vis.h index ab18d3b..4853c48 100644 --- a/vis.h +++ b/vis.h @@ -400,6 +400,16 @@ void vis_mark_set(Vis*, enum VisMark mark, size_t pos); enum VisRegister { VIS_REG_DEFAULT, /* used when no other register is specified */ VIS_REG_ZERO, /* yank register */ + VIS_REG_AMPERSAND, /* last regex match */ + VIS_REG_1, /* 1-9 last sub-expression matches */ + VIS_REG_2, + VIS_REG_3, + VIS_REG_4, + VIS_REG_5, + VIS_REG_6, + VIS_REG_7, + VIS_REG_8, + VIS_REG_9, VIS_REG_BLACKHOLE, /* /dev/null register */ VIS_REG_CLIPBOARD, /* system clipboard register */ VIS_MACRO_REPEAT, /* copy of the above macro once the recording is finished */ -- cgit v1.2.3