[gnome-builder/wip/libide-merge] vim: add <shift>c to delete to end of line and go to insert
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/libide-merge] vim: add <shift>c to delete to end of line and go to insert
- Date: Sun, 22 Mar 2015 02:20:22 +0000 (UTC)
commit cf7e2f08d4ab2400e6b05cbf2633cbe0957eac3e
Author: Christian Hergert <christian hergert me>
Date: Sat Mar 21 18:52:51 2015 -0700
vim: add <shift>c to delete to end of line and go to insert
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 c8be221..215c84e 100644
--- a/data/keybindings/vim.css
+++ b/data/keybindings/vim.css
@@ -366,6 +366,14 @@
"clear-count" ()
"end-macro" () };
+ /* delete to end of line and go to insert */
+ bind "<shift>c" { "begin-macro" ()
+ "movement" (last-char, 1, 0, 0)
+ "copy-clipboard" ()
+ "delete-selection" ()
+ "clear-count" ()
+ "set-mode" ("vim-insert", permanent) };
+
/* delete current char */
bind "x" { "begin-macro" ()
"movement" (next-char, 1, 1, 1)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]