26

I use CTRL+W then Enter every time, is there a "Find Next" command in nano?

0

1 Answer 1

39

You can get a list of all keyboard shortcuts by pressing ^G (Ctrl + G).

From Main nano help text:

M-W     (F16)           Repeat last search

M-W is Vim/Emacs notation, where M means Meta (a key present on MIT and Sun keyboards).

On IBM-compatible keyboards – depending on, e.g., your window manager and terminal emulator – you can invoke the shortcut with Alt + W (hold, tap), Win + W (hold, tap) or Esc, W (tap, tap).

F16 can be emulated with Shift + F4 (hold, tap); in general, F<12+n> can be emulated with Shift + F<n>. In the unlikely case your keyboard has such a key, you can simply press F16.

4
  • 4
    I actually read the help text, but didn't know M meant ALT. What does M mean BTW?
    – IMB
    Apr 12, 2013 at 9:16
  • From Putty (Windows) ssh-ing to an Ubuntu, with Configuration | Connection | Data | Terminal details | Terminal-type string set to linux I confirm that the combination Alt + M works as "find next". Feb 20, 2016 at 15:23
  • 4
    Short answer: Alt + W
    – testing_22
    Dec 31, 2021 at 22:38
  • Thanks! Only Esc + W worked for me, on xTerm. Jan 13, 2023 at 15:48

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .