• palordrolap@fedia.io
    link
    fedilink
    arrow-up
    1
    ·
    16 days ago

    Ctrl-/

    … and if you don’t like that horrible subversion of what a vi-user might expect to be the search feature*, there’s also Meta-G, which is slightly more similar to vi’s usage.

    You can also nano +L[,C] filename on the command line replacing L and C with respective line and column number, which I believe is a feature borrowed from vi.

    *The search feature is Ctrl-W for “where is”. Firefox users use this in the wrong window at their peril (it closes the current window). Find and replace is on Ctrl-\, which is even more of a subversion.

    I can use vi, but still prefer nano.

    • Ghoelian@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      2
      ·
      16 days ago

      Firefox users use this in the wrong window at their peril (it closes the current window)

      Not just firefox. Also chrome, and a lot of other programs that implement tabs like file managers and things like that. It’s one of those almost universal shortcuts, like Ctrl+F or Ctrl+L