aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-02-15 13:39:44 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-02-15 17:52:04 +0100
commitc7ab22b9b1b191596e6a6fed3437717d47e1ce72 (patch)
tree827b839ff56aa9feedf31f12461ce5ed36d5ea2a
parent0ca90b15b1b22d78c2822a967655511b81cce3e7 (diff)
downloadvis-c7ab22b9b1b191596e6a6fed3437717d47e1ce72.tar.gz
vis-c7ab22b9b1b191596e6a6fed3437717d47e1ce72.tar.xz
vis: add <C-c> as an alias for <Escape> in normal mode
Based on a patch by Erlend Fagerheim.
-rw-r--r--config.def.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/config.def.h b/config.def.h
index 368e80c..f5957ac 100644
--- a/config.def.h
+++ b/config.def.h
@@ -162,6 +162,7 @@ static const KeyBinding bindings_operator_options[] = {
static const KeyBinding bindings_normal[] = {
{ "<Escape>", ACTION(CURSORS_REMOVE_ALL) },
+ { "<C-c>", ALIAS("<Escape>") },
{ "<Delete>", ALIAS("x") },
{ "<C-k>", ACTION(CURSORS_NEW_LINE_ABOVE) },
{ "<C-j>", ACTION(CURSORS_NEW_LINE_BELOW) },
@@ -277,7 +278,7 @@ static const KeyBinding bindings_readline[] = {
{ "<C-h>", ALIAS("<Backspace>") },
{ "<Delete>", ACTION(DELETE_CHAR_NEXT) },
{ "<Escape>", ACTION(MODE_NORMAL) },
- { "<C-c>", ALIAS("<Enter>") },
+ { "<C-c>", ALIAS("<Escape>") },
{ "<C-d>", ACTION(DELETE_CHAR_NEXT) },
{ "<C-w>", ACTION(DELETE_WORD_PREV) },
{ "<C-u>", ACTION(DELETE_LINE_BEGIN) },
@@ -287,7 +288,6 @@ static const KeyBinding bindings_readline[] = {
static const KeyBinding bindings_insert[] = {
{ "<Escape>", ACTION(MODE_NORMAL) },
- { "<C-c>", ALIAS("<Escape>") },
{ "<C-i>", ALIAS("<Tab>") },
{ "<Enter>", ACTION(INSERT_NEWLINE) },
{ "<C-j>", ALIAS("<Enter>") },