[gnome-builder] libide: add vim style #*nN commands
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] libide: add vim style #*nN commands
- Date: Tue, 24 Mar 2015 00:15:36 +0000 (UTC)
commit c28f944f9d231ed52c6e9133663f92b16dcafa6f
Author: Christian Hergert <christian hergert me>
Date: Thu Mar 12 15:17:23 2015 -0700
libide: add vim style #*nN commands
data/keybindings/vim.css | 34 ++++++++++++++++++++++++++++++++++
1 files changed, 34 insertions(+), 0 deletions(-)
---
diff --git a/data/keybindings/vim.css b/data/keybindings/vim.css
index 2ea8b60..5a154f2 100644
--- a/data/keybindings/vim.css
+++ b/data/keybindings/vim.css
@@ -224,6 +224,21 @@
"movement" (previous-match-modifier, 0, 0, 1)
"clear-modifier" () };
+ bind "n" { "move-search" (down, 0, 1, 1, 1) };
+ bind "<shift>n" { "move-search" (up, 0, 0, 1, 1) };
+
+ bind "numbersign" { "movement" (previous-word-end, 0, 1, 1)
+ "movement" (next-word-start, 0, 1, 0)
+ "movement" (next-word-end, 1, 0, 1)
+ "set-search-text" ("", 1)
+ "move-search" (up, 0, 0, 1, 1) };
+
+ bind "asterisk" { "movement" (previous-word-end, 0, 1, 1)
+ "movement" (next-word-start, 0, 1, 0)
+ "movement" (next-word-end, 1, 0, 1)
+ "set-search-text" ("", 1)
+ "move-search" (down, 0, 1, 1, 1) };
+
/* page movements */
bind "<ctrl>b" { "movement" (page-up, 0, 0, 1)
"clear-count" () };
@@ -941,6 +956,25 @@
bind "b" { "movement" (previous-word-start, 1, 1, 1) };
bind "<shift>b" { "movement" (previous-full-word-start, 1, 1, 1) };
+ bind "n" { "move-search" (down, 1, 1, 1, 1) };
+ bind "<shift>n" { "move-search" (up, 1, 0, 1, 1) };
+
+ bind "numbersign" { "save-insert-mark" ()
+ "movement" (previous-word-end, 0, 1, 1)
+ "movement" (next-word-start, 0, 1, 0)
+ "movement" (next-word-end, 1, 0, 1)
+ "set-search-text" ("", 1)
+ "restore-insert-mark" ()
+ "move-search" (up, 1, 0, 1, 1) };
+
+ bind "asterisk" { "save-insert-mark" ()
+ "movement" (previous-word-end, 0, 1, 1)
+ "movement" (next-word-start, 0, 1, 0)
+ "movement" (next-word-end, 1, 0, 1)
+ "set-search-text" ("", 1)
+ "restore-insert-mark" ()
+ "move-search" (down, 1, 1, 1, 1) };
+
bind "<ctrl>b" { "movement" (page-up, 1, 0, 1) };
bind "<ctrl>f" { "movement" (page-down, 1, 0, 1) };
bind "<ctrl>u" { "movement" (half-page-up, 1, 0, 1) };
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]