aboutsummaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-03-10 20:56:24 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-03-10 22:36:54 +0100
commitd268609511dc77e1acbd3885642b82751d32bccc (patch)
treeb26baf503ce83aedcd059a6771809fdad69428b9 /config.def.h
parent5e632554d9bf7ea48783702ea59585639e1797bf (diff)
downloadvis-d268609511dc77e1acbd3885642b82751d32bccc.tar.gz
vis-d268609511dc77e1acbd3885642b82751d32bccc.tar.xz
vis: let <C-u> and <C-d> in visual mode move to prev/next cursor
We do currently not enforce a strict ordering among cursors. Hence these key bindings can move you to an arbitray position. In practice it somewhat works because most of the time cursors are created in "top-down" i.e from the start of the file towards the end.
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/config.def.h b/config.def.h
index e6b2a7d..27fc4eb 100644
--- a/config.def.h
+++ b/config.def.h
@@ -198,8 +198,8 @@ static const KeyBinding bindings_normal[] = {
{ "<C-w><Backspace>", ALIAS("<C-w>k") },
{ "<C-b>", ALIAS("<PageUp>") },
{ "<C-f>", ALIAS("<PageDown>") },
- { "<C-u>", ALIAS("<S-PageUp>") },
- { "<C-d>", ALIAS("<S-PageDown>") },
+ { "<C-u>", ACTION(CURSORS_PREV) },
+ { "<C-d>", ACTION(CURSORS_NEXT) },
{ "<C-e>", ACTION(WINDOW_SLIDE_UP) },
{ "<C-y>", ACTION(WINDOW_SLIDE_DOWN) },
{ "<C-o>", ACTION(JUMPLIST_PREV) },
@@ -269,8 +269,8 @@ static const KeyBinding bindings_visual[] = {
{ ":", ACTION(PROMPT_SHOW_VISUAL) },
{ "<C-b>", ALIAS("<PageUp>") },
{ "<C-f>", ALIAS("<PageDown>") },
- { "<C-u>", ALIAS("<S-PageUp>") },
- { "<C-d>", ALIAS("<S-PageDown>") },
+ { "<C-u>", ACTION(CURSORS_PREV) },
+ { "<C-d>", ACTION(CURSORS_NEXT) },
{ "x", ALIAS("d") },
{ "r", ALIAS("c") },
{ "s", ALIAS("c") },