[gnome-builder] libide: implement <shift>j for vim normal and visual-line modes
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] libide: implement <shift>j for vim normal and visual-line modes
- Date: Mon, 23 Mar 2015 23:56:44 +0000 (UTC)
commit f6d732304b3fb0c2ce6194e11771e7a345e96874
Author: Christian Hergert <christian hergert me>
Date: Wed Mar 4 17:23:40 2015 -0800
libide: implement <shift>j for vim normal and visual-line modes
data/keybindings/vim.css | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/data/keybindings/vim.css b/data/keybindings/vim.css
index 9bcbc9a..f59ac09 100644
--- a/data/keybindings/vim.css
+++ b/data/keybindings/vim.css
@@ -129,6 +129,12 @@
"copy-clipboard" ()
"delete-from-cursor" (chars, 1) };
+ /* join selected lines */
+ bind "<shift>j" { "movement" (first-char, 0)
+ "movement" (next-line, 1)
+ "join-lines" ()
+ "movement" (last-char, 0) };
+
/* change number */
bind "<ctrl>a" { "change-number" (1) };
bind "<ctrl>x" { "change-number" (-1) };
@@ -219,6 +225,11 @@
bind "<shift>y" { "copy-clipboard" ()
"clear-selection" ()
"set-mode" ("vim-normal", permanent) };
+
+ bind "<shift>j" { "join-lines" ()
+ "clear-selection" ()
+ "movement" (last-char, 0)
+ "set-mode" ("vim-normal", permanent) };
}
@binding-set builder-vim-source-view-visual-block
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]