[gnome-builder/wip/libide] libide: implement <shift>d in vim to delete to end of line
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/libide] libide: implement <shift>d in vim to delete to end of line
- Date: Wed, 4 Mar 2015 22:25:55 +0000 (UTC)
commit b465ce60f3a8236d70fa85bca9e73cace2109115
Author: Christian Hergert <christian hergert me>
Date: Wed Mar 4 14:25:38 2015 -0800
libide: implement <shift>d in vim to delete to end of line
data/keybindings/vim.css | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/data/keybindings/vim.css b/data/keybindings/vim.css
index 788fa19..dad6605 100644
--- a/data/keybindings/vim.css
+++ b/data/keybindings/vim.css
@@ -105,9 +105,17 @@
/* jump to sub-mode */
bind "d" { "set-mode" ("vim-normal-d", transient) };
+ /* delete to end of line */
+ bind "<shift>d" { "movement" (last-char, 1)
+ "copy-clipboard" ()
+ "delete-from-cursor" (chars, 1) };
+
+ /* delete current char */
bind "x" { "movement" (next-char, 1)
"copy-clipboard" ()
"delete-from-cursor" (chars, 1) };
+
+ /* delete previous char */
bind "<shift>x" { "movement" (previous-char, 1)
"copy-clipboard" ()
"delete-from-cursor" (chars, 1) };
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]