aboutsummaryrefslogtreecommitdiff
path: root/vis.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-10-31 19:04:38 +0100
committerMarc André Tanner <mat@brain-dump.org>2015-11-02 16:10:29 +0100
commitd395687b586bb7505792e9298b069344d5578194 (patch)
tree5bc6f4e6783f5cc5e06d1d9eb69c90d78afcde4b /vis.h
parent31f5ed4a6ee3acc35b41342992f7ccce3ff8f3f1 (diff)
downloadvis-d395687b586bb7505792e9298b069344d5578194.tar.gz
vis-d395687b586bb7505792e9298b069344d5578194.tar.xz
vis: improve dot command
Use an implicit macro to make changes in insert/replace mode repeatable.
Diffstat (limited to 'vis.h')
-rw-r--r--vis.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/vis.h b/vis.h
index 3bafba0..4ceba61 100644
--- a/vis.h
+++ b/vis.h
@@ -135,8 +135,8 @@ enum VisOperator {
OP_SHIFT_RIGHT,
OP_SHIFT_LEFT,
OP_JOIN,
- OP_REPEAT_INSERT,
- OP_REPEAT_REPLACE,
+ OP_INSERT,
+ OP_REPLACE,
OP_CURSOR_SOL,
OP_CASE_SWAP,
/* pseudo operators: keep them at the end to save space in array definition */
@@ -261,6 +261,8 @@ void vis_textobject(Vis*, enum VisTextObject);
enum VisMacro {
/* XXX: TEMPORARY */
VIS_MACRO_LAST_RECORDED = 26,
+ VIS_MACRO_REPEAT,
+ VIS_MACRO_OPERATOR,
VIS_MACRO_INVALID, /* hast to be the last enum member */
};