From 581dc59fb813fb31f25e35a72b64462fe1640299 Mon Sep 17 00:00:00 2001 From: Alex Leferry 2 Date: Thu, 3 Jul 2014 15:22:02 +0200 Subject: [PATCH] add alt-n commands to (replace|append) previous match Note: alt-n command were used to replace main selection with next match (preserving the others) --- README.asciidoc | 3 ++- src/normal.cc | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.asciidoc b/README.asciidoc index 3b595f8d0..f20e30fc4 100644 --- a/README.asciidoc +++ b/README.asciidoc @@ -145,7 +145,8 @@ Basic Movement * _?_: search (extend to next match) * _n_: select next match * _N_: add a new selection with next match - * _alt-n_: replace main selection with next match (preserving the others) + * _alt-n_: select previous match + * _alt-N_: add a new selection with previous match * _pageup_: scroll up * _pagedown_: scroll down diff --git a/src/normal.cc b/src/normal.cc index 6a5468b42..dd22af53d 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -1319,8 +1319,9 @@ KeyMap keymap = { alt('/'), search }, { alt('?'), search }, { 'n', search_next }, - { alt('n'), search_next }, { 'N', search_next }, + { alt('n'), search_next }, + { alt('N'), search_next }, { '*', use_selection_as_search_pattern }, { alt('*'), use_selection_as_search_pattern },