[gnome-builder] vim: fix home/end/page-up/page-down in selection mode
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] vim: fix home/end/page-up/page-down in selection mode
- Date: Sat, 7 May 2016 09:06:36 +0000 (UTC)
commit 5ad84ea7feef0f517ec1496e9075412d63ba1f7e
Author: Christian Hergert <chergert redhat com>
Date: Sat May 7 11:50:41 2016 +0300
vim: fix home/end/page-up/page-down in selection mode
Although, it seems that page up/down still isn't quite right in the same
way ctrl+f/b isn't quite right in linewise mode.
https://bugzilla.gnome.org/show_bug.cgi?id=766087
data/keybindings/vim.css | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/data/keybindings/vim.css b/data/keybindings/vim.css
index 9a3a1e5..7f711fb 100644
--- a/data/keybindings/vim.css
+++ b/data/keybindings/vim.css
@@ -1925,7 +1925,9 @@ bind "KP_Multiply" { "save-insert-mark" ()
"move-search" (down, 1, 0, 1, 1, 1) };
bind "<ctrl>b" { "movement" (page-up, 1, 0, 1) };
+ bind "Page_Up" { "movement" (page-up, 1, 0, 1) };
bind "<ctrl>f" { "movement" (page-down, 1, 0, 1) };
+ bind "Page_Down" { "movement" (page-down, 1, 0, 1) };
bind "<ctrl>u" { "movement" (half-page-up, 1, 0, 1) };
bind "<ctrl>d" { "movement" (half-page-down, 1, 0, 1) };
@@ -1940,8 +1942,10 @@ bind "KP_Multiply" { "save-insert-mark" ()
bind "0" { "movement" (first-char, 1, 1, 0) };
bind "KP_0" { "movement" (first-char, 1, 1, 0) };
+ bind "Home" { "movement" (first-char, 1, 1, 0) };
bind "asciicircum" { "movement" (first-nonspace-char, 1, 0, 0) };
- bind "dollar" { "movement" (last-char, 1, 1, 0) };
+ bind "dollar" { "movement" (last-char, 1, 0, 0) };
+ bind "End" { "movement" (last-char, 1, 0, 0) };
bind "bar" { "movement" (nth-char, 1, 1, 1) };
bind "<shift>h" { "movement" (screen-top, 1, 0, 0) };
@@ -2316,8 +2320,12 @@ bind "KP_Multiply" { "save-insert-mark" ()
/* page movements */
bind "<ctrl>b" { "movement" (page-up, 1, 0, 1)
"clear-count" () };
+ bind "Page_Up" { "movement" (page-up, 1, 0, 1)
+ "clear-count" () };
bind "<ctrl>f" { "movement" (page-down, 1, 0, 1)
"clear-count" () };
+ bind "Page_Down" { "movement" (page-down, 1, 0, 1)
+ "clear-count" () };
bind "<ctrl>u" { "movement" (half-page-up, 1, 0, 1)
"clear-count" () };
bind "<ctrl>d" { "movement" (half-page-down, 1, 0, 1)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]