[gnome-builder] vim: add keypad / and * same as regular ones
- From: Sébastien Lafargue <slafargue src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] vim: add keypad / and * same as regular ones
- Date: Sun, 17 Jan 2016 16:54:25 +0000 (UTC)
commit 9baeab8b98a89f75a92554fbab9d4b8608d2a657
Author: Sebastien Lafargue <slafargue gnome org>
Date: Sun Jan 17 17:52:24 2016 +0100
vim: add keypad / and * same as regular ones
data/keybindings/vim.css | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/data/keybindings/vim.css b/data/keybindings/vim.css
index d94b94c..2b941fe 100644
--- a/data/keybindings/vim.css
+++ b/data/keybindings/vim.css
@@ -180,6 +180,7 @@
/* start search */
bind "slash" { "action" ("frame", "find", "3") };
+ bind "KP_Divide" { "action" ("frame", "find", "3") };
/* insert at cursor */
bind "i" { "begin-macro" ()
@@ -339,6 +340,12 @@
"set-search-text" ("", 1)
"move-search" (down, 0, 0, 1, 1, 1) };
+ bind "KP_Multiply" { "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, 0, 1, 1, 1) };
+
/* page movements */
bind "<ctrl>b" { "movement" (page-up, 0, 0, 1)
"clear-count" () };
@@ -1888,6 +1895,14 @@
"restore-insert-mark" ()
"move-search" (down, 1, 0, 1, 1, 1) };
+bind "KP_Multiply" { "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, 0, 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) };
@@ -2286,6 +2301,7 @@
bind "<ctrl>n" { "move-cursor" (display-lines, 1) };
bind "<ctrl>p" { "move-cursor" (display-lines, -1) };
bind "slash" { "start-interactive-search" () };
+ bind "KP_Divide" { "start-interactive-search" () };
}
@binding-set builder-vim-list-box
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]