diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-01-13 13:18:44 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-01-13 13:31:14 +0100 |
| commit | 4600b76efe80c9ba0461276412e58992d2300cae (patch) | |
| tree | cacbd17ffca5a50c541e9c8582df99f64e11bf89 /vis.h | |
| parent | 42d169f374f14595c52c523b40c97dc90707c46f (diff) | |
| download | vis-4600b76efe80c9ba0461276412e58992d2300cae.tar.gz vis-4600b76efe80c9ba0461276412e58992d2300cae.tar.xz | |
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.
Diffstat (limited to 'vis.h')
| -rw-r--r-- | vis.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 */ |
