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.c | |
| 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.c')
| -rw-r--r-- | vis.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -37,6 +37,16 @@ const MarkDef vis_marks[] = { const RegisterDef vis_registers[] = { [VIS_REG_DEFAULT] = { '"', "Unnamed register" }, [VIS_REG_ZERO] = { '0', "Yank register" }, + [VIS_REG_1] = { '1', "1st sub-expression match" }, + [VIS_REG_2] = { '2', "2nd sub-expression match" }, + [VIS_REG_3] = { '3', "3rd sub-expression match" }, + [VIS_REG_4] = { '4', "4th sub-expression match" }, + [VIS_REG_5] = { '5', "5th sub-expression match" }, + [VIS_REG_6] = { '6', "6th sub-expression match" }, + [VIS_REG_7] = { '7', "7th sub-expression match" }, + [VIS_REG_8] = { '8', "8th sub-expression match" }, + [VIS_REG_9] = { '9', "9th sub-expression match" }, + [VIS_REG_AMPERSAND] = { '&', "Last regex match" }, [VIS_REG_BLACKHOLE] = { '_', "/dev/null register" }, [VIS_REG_CLIPBOARD] = { '*', "System clipboard register, see vis-clipboard(1)" }, [VIS_MACRO_REPEAT] = { '.', "Last inserted text" }, |
