aboutsummaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2014-10-24 23:39:37 +0200
committerMarc André Tanner <mat@brain-dump.org>2014-10-24 23:39:37 +0200
commit1ff146d3c256782ad976913739a3fef7b57b3fb3 (patch)
tree2c47e9f9f5dcf52107fe394174e03ada922886e7 /config.def.h
parentc1d69b6067c896a56fa55c1fdb299cc78065d920 (diff)
downloadvis-1ff146d3c256782ad976913739a3fef7b57b3fb3.tar.gz
vis-1ff146d3c256782ad976913739a3fef7b57b3fb3.tar.xz
Make command prompt available in visual modes
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/config.def.h b/config.def.h
index 629400c..0e81845 100644
--- a/config.def.h
+++ b/config.def.h
@@ -151,8 +151,8 @@ static KeyBinding vis_movements[] = {
{ { NONE('F') }, movement_key, { .i = MOVE_LEFT_TO } },
{ { NONE('t') }, movement_key, { .i = MOVE_RIGHT_TILL } },
{ { NONE('T') }, movement_key, { .i = MOVE_LEFT_TILL } },
- { { NONE('/') }, prompt, { .s = "/" } },
- { { NONE('?') }, prompt, { .s = "?" } },
+ { { NONE('/') }, prompt_search,{ .s = "/" } },
+ { { NONE('?') }, prompt_search,{ .s = "?" } },
{ /* empty last element, array terminator */ },
};
@@ -401,7 +401,7 @@ static KeyBinding vis_mode_normal[] = {
{ { NONE('u') }, undo, { NULL } },
{ { CONTROL('R') }, redo, { NULL } },
{ { CONTROL('L') }, call, { .f = editor_draw } },
- { { NONE(':') }, prompt, { .s = ":" } },
+ { { NONE(':') }, prompt_cmd, { .s = "" } },
{ { NONE('Z'), NONE('Z') }, cmd, { .s = "wq" } },
{ { NONE('Z'), NONE('Q') }, cmd, { .s = "q!" } },
{ { NONE('z'), NONE('t') }, window, { .w = window_redraw_top } },
@@ -416,6 +416,7 @@ static KeyBinding vis_mode_visual[] = {
{ { CONTROL('c') }, switchmode, { .i = VIS_MODE_NORMAL } },
{ { NONE('v') }, switchmode, { .i = VIS_MODE_NORMAL } },
{ { NONE('V') }, switchmode, { .i = VIS_MODE_VISUAL_LINE } },
+ { { NONE(':') }, prompt_cmd, { .s = "'<,'>" } },
{ { CONTROL('H') }, operator, { .i = OP_DELETE } },
{ { NONE('d') }, operator, { .i = OP_DELETE } },
{ { NONE('x') }, operator, { .i = OP_DELETE } },