From ab2d1ddd0adbeec8061b6560ebedf5a1f7bb5867 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sat, 2 Apr 2016 13:20:20 +0200 Subject: sam: unify vi(m) and sam command line The following vi commands have been dropped: - saveas - xit - ! The following commands are only recognized in their short form: - e (edit) - q (quit) - s (substitute) - w (write) - r (read) --- main.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index b6cf1cb..9208974 100644 --- a/main.c +++ b/main.c @@ -228,7 +228,6 @@ enum { VIS_ACTION_JOIN_LINE_BELOW, VIS_ACTION_JOIN_LINES, VIS_ACTION_PROMPT_SHOW, - VIS_ACTION_PROMPT_SHOW_VISUAL, VIS_ACTION_REPEAT, VIS_ACTION_SELECTION_FLIP, VIS_ACTION_SELECTION_RESTORE, @@ -748,7 +747,7 @@ static const KeyAction vis_action[] = { [VIS_ACTION_OPERATOR_FILTER_FMT] = { "vis-operator-filter-format", "Formating operator, filter range through fmt(1)", - operator_filter, { .s = "'<,'>!fmt" } + operator_filter, { .s = "|fmt" } }, [VIS_ACTION_COUNT] = { "vis-count", @@ -825,11 +824,6 @@ static const KeyAction vis_action[] = { "Show editor command line prompt", prompt_show, { .s = ":" } }, - [VIS_ACTION_PROMPT_SHOW_VISUAL] = { - "prompt-show-visual", - "Show editor command line prompt in visual mode", - prompt_show, { .s = ":'<,'>" } - }, [VIS_ACTION_REPEAT] = { "editor-repeat", "Repeat latest editor command", -- cgit v1.2.3