[gnome-builder] libide: add vim style "<count>r<modifier>" overwrite command
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] libide: add vim style "<count>r<modifier>" overwrite command
- Date: Tue, 24 Mar 2015 00:11:48 +0000 (UTC)
commit 90f9b7f15d0200e8804f5d872a346d4c52057f93
Author: Christian Hergert <christian hergert me>
Date: Wed Mar 11 12:57:22 2015 -0700
libide: add vim style "<count>r<modifier>" overwrite command
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 186fa37..f4da613 100644
--- a/data/keybindings/vim.css
+++ b/data/keybindings/vim.css
@@ -148,6 +148,14 @@
"copy-clipboard" ()
"delete-selection" () };
+ /* overwrite the current character with a modifier */
+ bind "r" { "capture-modifier" ()
+ "movement" (next-char, 1, 1, 1)
+ "delete-selection" ()
+ "insert-modifier" (1)
+ "clear-modifier" ()
+ "movement" (previous-char, 0, 1, 0) };
+
bind "Left" { "movement" (previous-char, 0, 1, 1)
"clear-count" () };
bind "Right" { "movement" (next-char, 0, 1, 1)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]