aboutsummaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2014-09-27 19:51:29 +0200
committerMarc André Tanner <mat@brain-dump.org>2014-09-27 19:51:29 +0200
commit521263a2c67d2b5df507858dcd240a9e42790780 (patch)
tree2967b3b921f4e5568825367bbeb367f3f918a19d /config.def.h
parentab264837f7c127ba8ff4666f9c4ed94efd485af0 (diff)
downloadvis-521263a2c67d2b5df507858dcd240a9e42790780.tar.gz
vis-521263a2c67d2b5df507858dcd240a9e42790780.tar.xz
Implement 'zt', 'zz', 'zb'
In particular 'zb' might not work if there are wrapped lines involved.
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
index ebc9057..484b152 100644
--- a/config.def.h
+++ b/config.def.h
@@ -402,6 +402,9 @@ static KeyBinding vis_mode_normal[] = {
{ { NONE(':') }, prompt, { .s = ":" } },
{ { NONE('Z'), NONE('Z') }, cmd, { .s = "wq" } },
{ { NONE('Z'), NONE('Q') }, cmd, { .s = "q!" } },
+ { { NONE('z'), NONE('t') }, window, { .w = window_redraw_top } },
+ { { NONE('z'), NONE('z') }, window, { .w = window_redraw_center } },
+ { { NONE('z'), NONE('b') }, window, { .w = window_redraw_bottom } },
{ /* empty last element, array terminator */ },
};