summaryrefslogtreecommitdiff
path: root/src/normal.cc
diff options
context:
space:
mode:
authorAlex Leferry 2 <alexherbo2@gmail.com>2014-07-03 15:22:02 +0200
committerAlex Leferry 2 <alexherbo2@gmail.com>2014-07-03 15:27:07 +0200
commit581dc59fb813fb31f25e35a72b64462fe1640299 (patch)
tree48ebb7662d90488e6ecb9a2f3c15dd064050662e /src/normal.cc
parente51223e8e585d38e60529082049cb695e53745de (diff)
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)
Diffstat (limited to 'src/normal.cc')
-rw-r--r--src/normal.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/normal.cc b/src/normal.cc
index 6a5468b4..dd22af53 100644
--- a/src/normal.cc
+++ b/src/normal.cc
@@ -1319,8 +1319,9 @@ KeyMap keymap =
{ alt('/'), search<SelectMode::Replace, Backward> },
{ alt('?'), search<SelectMode::Extend, Backward> },
{ 'n', search_next<SelectMode::Replace, Forward> },
- { alt('n'), search_next<SelectMode::ReplaceMain, Forward> },
{ 'N', search_next<SelectMode::Append, Forward> },
+ { alt('n'), search_next<SelectMode::Replace, Backward> },
+ { alt('N'), search_next<SelectMode::Append, Backward> },
{ '*', use_selection_as_search_pattern<true> },
{ alt('*'), use_selection_as_search_pattern<false> },