[gnome-builder/wip/libide] libide: fix dd in vim mode
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/libide] libide: fix dd in vim mode
- Date: Sat, 7 Mar 2015 00:14:57 +0000 (UTC)
commit 2d7f0d8f79d77192570f787eb5dbaf71f7fbbc2f
Author: Christian Hergert <christian hergert me>
Date: Fri Mar 6 16:14:27 2015 -0800
libide: fix dd in vim mode
data/keybindings/vim.css | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/data/keybindings/vim.css b/data/keybindings/vim.css
index 07ba63b..d6f4e8c 100644
--- a/data/keybindings/vim.css
+++ b/data/keybindings/vim.css
@@ -234,7 +234,9 @@
"clear-count" () };
/* move to nth line, defaults to last */
- bind "<shift>g" { "movement" (nth-line, 0, 0, 1) };
+ bind "<shift>g" { "movement" (nth-line, 0, 1, 1)
+ "movement" (first-nonspace-char, 0, 1, 0)
+ "clear-count" () };
/* undo - todo: how do we land cursor on right spot? */
bind "u" { "undo" ()
@@ -398,10 +400,13 @@
bind "i" { "set-mode" ("vim-normal-d-i", transient) };
bind "g" { "set-mode" ("vim-normal-d-g", transient) };
- bind "d" { "movement" (first-char, 0, 0, 0)
- "movement" (next-line, 1, 1, 1)
+ bind "d" { "save-insert-mark" ()
+ "movement" (first-char, 0, 1, 0)
+ "movement" (next-line, 1, 0, 1)
"copy-clipboard" ()
- "delete-selection" () };
+ "delete-selection" ()
+ "restore-insert-mark" () };
+
bind "e" { "movement" (next-word-end, 1, 0, 1)
"copy-clipboard" ()
"delete-selection" () };
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]