vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit 7ac3855b588fa78fadd02a92f9b35faec6101014
parent da7edc5206a6031ba38f1f704091dbfcc21fbd60
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Wed, 27 Apr 2016 11:15:52 +0200

vis: change behavior of $ to never move to the left

Diffstat:
Mconfig.def.h | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/config.def.h b/config.def.h @@ -34,7 +34,7 @@ static const KeyBinding bindings_motions[] = { { "]}", ACTION(CURSOR_BLOCK_END) }, { "[(", ACTION(CURSOR_PARENTHESE_START) }, { "])", ACTION(CURSOR_PARENTHESE_END) }, - { "$", ACTION(CURSOR_LINE_LASTCHAR) }, + { "$", ACTION(CURSOR_LINE_END) }, { "^", ACTION(CURSOR_LINE_START) }, { "}", ACTION(CURSOR_PARAGRAPH_NEXT) }, { "{", ACTION(CURSOR_PARAGRAPH_PREV) }, @@ -221,7 +221,6 @@ static const KeyBinding bindings_normal[] = { { "<C-y>", ACTION(WINDOW_SLIDE_DOWN) }, { "D", ALIAS("d$") }, { "<Delete>", ALIAS("x") }, - { "<End>", ALIAS("$") }, { "<Escape>", ACTION(CURSORS_REMOVE_ALL) }, { "<F1>", ALIAS(":help<Enter>") }, { "ga", ACTION(UNICODE_INFO) },