[gnome-builder/wip/libide] libide: add vim style W, B, E, and gE keybindings
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/libide] libide: add vim style W, B, E, and gE keybindings
- Date: Thu, 5 Mar 2015 05:00:43 +0000 (UTC)
commit c197acde79c5c28781718de038fd57455dc6b1b1
Author: Christian Hergert <christian hergert me>
Date: Wed Mar 4 21:00:30 2015 -0800
libide: add vim style W, B, E, and gE keybindings
data/keybindings/vim.css | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/data/keybindings/vim.css b/data/keybindings/vim.css
index eae18f2..a094478 100644
--- a/data/keybindings/vim.css
+++ b/data/keybindings/vim.css
@@ -50,19 +50,18 @@
bind "k" { "movement" (previous-line, 0) };
bind "j" { "movement" (next-line, 0) };
- /* move by word starts */
- bind "b" { "movement" (previous-word-start, 0) };
- bind "w" { "movement" (next-word-start, 0) };
-
/* move to special sub-mode 'g' */
bind "g" { "set-mode" ("vim-normal-g", transient ) };
/* move by word ends */
bind "e" { "movement" (next-word-end, 0) };
+ bind "<shift>e" { "movement" (next-full-word-end, 0) };
/* move to by word start */
bind "w" { "movement" (next-word-start, 0) };
+ bind "<shift>w" { "movement" (next-full-word-start, 0) };
bind "b" { "movement" (previous-word-start, 0) };
+ bind "<shift>b" { "movement" (previous-full-word-start, 0) };
/* page movements */
bind "<ctrl>b" { "movement" (page-up, 0) };
@@ -191,6 +190,7 @@
bind "<shift>i" { "movement" (first-char, 0)
"set-mode" ("vim-insert", permanent) };
bind "e" { "movement" (previous-word-end, 0) };
+ bind "<shift>e" { "movement" (previous-full-word-end, 0) };
bind "g" { "movement" (first-line, 0) };
bind "m" { "movement" (middle-char, 0) };
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]