[gnome-builder/wip/libide] libide: clear selection in vim after undo and escape hatch
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/libide] libide: clear selection in vim after undo and escape hatch
- Date: Wed, 4 Mar 2015 22:34:24 +0000 (UTC)
commit bcfaadb729eb85af72b8aa3ae090501c13681897
Author: Christian Hergert <christian hergert me>
Date: Wed Mar 4 14:34:14 2015 -0800
libide: clear selection in vim after undo and escape hatch
data/keybindings/vim.css | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/data/keybindings/vim.css b/data/keybindings/vim.css
index dad6605..53b1528 100644
--- a/data/keybindings/vim.css
+++ b/data/keybindings/vim.css
@@ -1,8 +1,10 @@
@binding-set builder-vim-source-view
{
bind "Escape" { "set-overwrite" (0)
+ "clear-selection" ()
"set-mode" ("vim-normal", permanent) };
bind "<ctrl>bracketleft" { "set-overwrite" (0)
+ "clear-selection" ()
"set-mode" ("vim-normal", permanent) };
}
@@ -94,8 +96,11 @@
/* move to nth line, defaults to last */
bind "<shift>g" { "movement" (nth-line, 0) };
- /* Undo & Redo */
- bind "u" { "undo" () };
+ /* undo - todo: how do we land cursor on right spot? */
+ bind "u" { "undo" ()
+ "clear-selection" () };
+
+ /* redo */
bind "<ctrl>r" { "redo" () };
/* overwrite */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]