[gnome-builder/wip/slaf/vim: 2/2] vim: add ctrl+c go to back to normal mode
- From: Sébastien Lafargue <slafargue src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/slaf/vim: 2/2] vim: add ctrl+c go to back to normal mode
- Date: Fri, 6 Nov 2015 18:23:41 +0000 (UTC)
commit f002b76988b7b064d0e35f4a9d73e4b5c7a14089
Author: Sebastien Lafargue <slafargue gnome org>
Date: Fri Nov 6 19:18:38 2015 +0100
vim: add ctrl+c go to back to normal mode
I also remove <ctrl>w<ctrl>c because it's shadowed
by the global ctrl+c and from vim doc:
CTRL-W CTRL-C
You might have expected that CTRL-W CTRL-C closes the current
window, but that does not work, because the CTRL-C cancels the
command.
https://bugzilla.gnome.org/show_bug.cgi?id=751180
data/keybindings/vim.css | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/data/keybindings/vim.css b/data/keybindings/vim.css
index 5aebeaf..e66c378 100644
--- a/data/keybindings/vim.css
+++ b/data/keybindings/vim.css
@@ -92,6 +92,13 @@
"clear-snippets" ()
"hide-completion" ()
"set-mode" ("vim-normal", permanent) };
+ bind "<ctrl>c" { "end-macro" ()
+ "set-overwrite" (0)
+ "clear-count" ()
+ "clear-selection" ()
+ "clear-snippets" ()
+ "hide-completion" ()
+ "set-mode" ("vim-normal", permanent) };
bind "<ctrl>comma" { "action" ("app", "preferences", "") };
bind "<ctrl>period" { "action" ("workbench", "global-search", "") };
@@ -1544,7 +1551,6 @@
bind "<ctrl>v" { "action" ("view-stack", "split-right", "") "grab_focus" () };
bind "c" { "action" ("view", "close", "") };
- bind "<ctrl>c" { "action" ("view", "close", "") };
bind "s" { "action" ("view-stack", "split-down", "") };
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]