diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-01-20 12:56:38 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-01-20 12:56:38 +0100 |
| commit | b9e8d20523a7bf05e02468efd97bbcf90f18a1e0 (patch) | |
| tree | d9bfb959b09bce405216449aad0f3a526f7bfcc1 /config.def.h | |
| parent | a552b071a0f88153ba5ff462fcdf4461ff4f2a16 (diff) | |
| download | vis-b9e8d20523a7bf05e02468efd97bbcf90f18a1e0.tar.gz vis-b9e8d20523a7bf05e02468efd97bbcf90f18a1e0.tar.xz | |
vis: make <End> in insert/replace mode move to the end of line
The behaviour of <End> vs $ in various modes may still be
inconsistent, but at least it can now be configured via
key bindings.
Diffstat (limited to 'config.def.h')
| -rw-r--r-- | config.def.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config.def.h b/config.def.h index a395bcf..30e17bb 100644 --- a/config.def.h +++ b/config.def.h @@ -38,7 +38,7 @@ static const KeyBinding bindings_motions[] = { { "g<Down>", ALIAS("gj") }, { "^", ACTION(CURSOR_LINE_START) }, { "g_", ACTION(CURSOR_LINE_FINISH) }, - { "$", ACTION(CURSOR_LINE_END) }, + { "$", ACTION(CURSOR_LINE_LASTCHAR) }, { "%", ACTION(CURSOR_BRACKET_MATCH) }, { "b", ACTION(CURSOR_WORD_START_PREV) }, { "B", ACTION(CURSOR_LONGWORD_START_PREV) }, @@ -232,6 +232,7 @@ static const KeyBinding bindings_normal[] = { { "gp", ACTION(PUT_AFTER_END) }, { "gP", ACTION(PUT_BEFORE_END) }, { "~", ALIAS("<vis-operator-case-swap>l") }, + { "<End>", ALIAS("$") }, { 0 /* empty last element, array terminator */ }, }; |
