aboutsummaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-02-11 10:32:49 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-02-11 10:32:49 +0100
commita9db1caf19d34f13319a3ebf92100c2c92015582 (patch)
tree2bf64c214e276ab4ff7fc460cb889675c93e4d48 /config.def.h
parent979d51bcb65ccceec95f34a10fdf6446ac97473c (diff)
downloadvis-a9db1caf19d34f13319a3ebf92100c2c92015582.tar.gz
vis-a9db1caf19d34f13319a3ebf92100c2c92015582.tar.xz
vis: implement gn and gN text objects
The behaviour when no match is found is not yet optimal.
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
index 5d53e41..31d7dac 100644
--- a/config.def.h
+++ b/config.def.h
@@ -123,6 +123,8 @@ static const KeyBinding bindings_textobjects[] = {
{ "ie", ACTION(TEXT_OBJECT_ENTIRE_INNER) },
{ "if", ACTION(TEXT_OBJECT_FUNCTION_INNER) },
{ "il", ACTION(TEXT_OBJECT_LINE_INNER) },
+ { "gn", ACTION(TEXT_OBJECT_SEARCH_FORWARD) },
+ { "gN", ACTION(TEXT_OBJECT_SEARCH_BACKWARD) },
{ 0 /* empty last element, array terminator */ },
};
@@ -235,6 +237,8 @@ static const KeyBinding bindings_normal[] = {
{ "<End>", ALIAS("$") },
{ "gf", ACTION(OPEN_FILE_UNDER_CURSOR) },
{ "<C-w>gf", ACTION(OPEN_FILE_UNDER_CURSOR_NEW_WINDOW) },
+ { "gn", ALIAS("vgn") },
+ { "gN", ALIAS("vgN") },
{ 0 /* empty last element, array terminator */ },
};