[gnome-builder/gnome-builder-3-18] vim: add support for num-pad
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/gnome-builder-3-18] vim: add support for num-pad
- Date: Thu, 15 Oct 2015 14:41:15 +0000 (UTC)
commit ef6e9e36de6291332e83b360b0b27446c49c71d9
Author: Christian Hergert <chergert redhat com>
Date: Tue Oct 13 12:00:17 2015 -0700
vim: add support for num-pad
It's unfortunate that these need separate bindings specified for them,
but not the end of the world.
data/keybindings/vim.css | 40 ++++++++++++++++++++++++++++++++++++++++
1 files changed, 40 insertions(+), 0 deletions(-)
---
diff --git a/data/keybindings/vim.css b/data/keybindings/vim.css
index 2733bfa..83ffb44 100644
--- a/data/keybindings/vim.css
+++ b/data/keybindings/vim.css
@@ -111,6 +111,8 @@
{
bind "0" { "append-to-count" (0)
"set-mode" ("vim-normal-with-count", transient) };
+ bind "KP_0" { "append-to-count" (0)
+ "set-mode" ("vim-normal-with-count", transient) };
bind "percent" { "movement" (line-percentage, 0, 1, 1)
"set-mode" ("vim-normal-with-count", transient) };
}
@@ -138,6 +140,25 @@
bind "9" { "append-to-count" (9)
"set-mode" ("vim-normal-with-count", transient) };
+ bind "KP_1" { "append-to-count" (1)
+ "set-mode" ("vim-normal-with-count", transient) };
+ bind "KP_2" { "append-to-count" (2)
+ "set-mode" ("vim-normal-with-count", transient) };
+ bind "KP_3" { "append-to-count" (3)
+ "set-mode" ("vim-normal-with-count", transient) };
+ bind "KP_4" { "append-to-count" (4)
+ "set-mode" ("vim-normal-with-count", transient) };
+ bind "KP_5" { "append-to-count" (5)
+ "set-mode" ("vim-normal-with-count", transient) };
+ bind "KP_6" { "append-to-count" (6)
+ "set-mode" ("vim-normal-with-count", transient) };
+ bind "KP_7" { "append-to-count" (7)
+ "set-mode" ("vim-normal-with-count", transient) };
+ bind "KP_8" { "append-to-count" (8)
+ "set-mode" ("vim-normal-with-count", transient) };
+ bind "KP_9" { "append-to-count" (9)
+ "set-mode" ("vim-normal-with-count", transient) };
+
bind "colon" { "action" ("win", "show-command-bar", "") };
/* cycle "tabs" */
@@ -333,6 +354,8 @@
/* move to line offset of zero, and first non-whitespace char, end of line */
bind "0" { "movement" (first-char, 0, 1, 0)
"clear-count" () };
+ bind "KP_0" { "movement" (first-char, 0, 1, 0)
+ "clear-count" () };
bind "asciicircum" { "movement" (first-nonspace-char, 0, 1, 0)
"clear-count" () };
bind "dollar" { "movement" (last-char, 0, 1, 0)
@@ -756,6 +779,18 @@
"copy-clipboard" ()
"delete-selection" ()
"end-macro" () };
+ bind "KP_0" { "begin-macro" ()
+ "set-mode" ("vim-insert", permanent)
+ "movement" (first-char, 1, 0, 0)
+ "copy-clipboard" ()
+ "delete-selection" ()
+ "end-macro" () };
+
+ bind "KP_0" { "begin-macro" ()
+ "movement" (first-char, 1, 0, 0)
+ "copy-clipboard" ()
+ "delete-selection" ()
+ "end-macro" () };
bind "<shift>asciicircum" { "begin-macro" ()
"movement" (first-nonspace-char, 1, 1, 1)
"copy-clipboard" ()
@@ -1076,6 +1111,8 @@
{
bind "0" { "append-to-count" (0)
"set-mode" ("vim-visual-with-count", transient) };
+ bind "KP_0" { "append-to-count" (0)
+ "set-mode" ("vim-visual-with-count", transient) };
bind "percent" { "movement" (line-percentage, 1, 1, 1)
"set-mode" ("vim-visual-with-count", transient) };
}
@@ -1184,6 +1221,7 @@
"set-mode" ("vim-normal", permanent) };
bind "0" { "movement" (first-char, 1, 1, 0) };
+ bind "KP_0" { "movement" (first-char, 1, 1, 0) };
bind "asciicircum" { "movement" (first-nonspace-char, 1, 0, 0) };
bind "dollar" { "movement" (last-char, 1, 1, 0) };
bind "bar" { "movement" (nth-char, 1, 1, 1) };
@@ -1246,6 +1284,8 @@
{
bind "0" { "append-to-count" (0)
"set-mode" ("vim-visual-line-with-count", transient) };
+ bind "KP_0" { "append-to-count" (0)
+ "set-mode" ("vim-visual-line-with-count", transient) };
bind "percent" { "movement" (line-percentage, 0, 1, 1)
"set-mode" ("vim-visual-line-with-count", transient) };
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]