[gnome-builder] libide: add some movements while in visual
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] libide: add some movements while in visual
- Date: Mon, 23 Mar 2015 23:59:47 +0000 (UTC)
commit 93075ad319262f3e77446249bf6614341e26b1fb
Author: Christian Hergert <christian hergert me>
Date: Thu Mar 5 12:39:26 2015 -0800
libide: add some movements while in visual
data/keybindings/vim.css | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/data/keybindings/vim.css b/data/keybindings/vim.css
index 9d5bb2e..114caae 100644
--- a/data/keybindings/vim.css
+++ b/data/keybindings/vim.css
@@ -232,6 +232,26 @@
@binding-set builder-vim-source-view-visual
{
bind "percent" { "move-to-matching-bracket" (1) };
+
+ bind "h" { "movement" (previous-char, 1) };
+ bind "l" { "movement" (next-char, 1) };
+ bind "k" { "movement" (previous-line, 1) };
+ bind "j" { "movement" (next-line, 1) };
+
+ bind "0" { "movement" (first-char, 1) };
+ bind "<shift>asciicircum" { "movement" (first-nonspace-char, 1) };
+ bind "dollar" { "movement" (last-char, 1) };
+ bind "bar" { "movement" (nth-char, 1) };
+
+ bind "<shift>h" { "movement" (screen-top, 1) };
+ bind "<shift>m" { "movement" (screen-middle, 1) };
+ bind "<shift>l" { "movement" (screen-bottom, 1) };
+
+ bind "braceleft" { "movement" (paragraph-start, 1) };
+ bind "braceright" { "movement" (paragraph-end, 1) };
+
+ bind "parenleft" { "movement" (sentence-start, 1) };
+ bind "parenright" { "movement" (sentence-end, 1) };
}
@binding-set builder-vim-source-view-visual-line
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]