1

In windows file explorer, if you hit a letter like R, you get to a file/folder beginning with R.

Especially in directories with many files this is super convenient.

Does one of the Vim file explorers support this? Out of the box or with heavy configuring?

Any other Unix console mode file browser?

1 Answer 1

2

Any Vim "file manager" is based upon "normal" Vim buffer/window functionality. So pressing "slash" and typing some regex (incl. literal "foobar") should work just as it does everywhere else. This is why one should learn Vim, not "netrw" or "help window" and such.

5
  • Thanks, this works, but is not overly convenient, on a german keybord this is /^<space>R
    – weberjn
    Nov 27, 2022 at 13:01
  • You can make a mapping for this @weberjn; for example nnoremap ! /^<Space>. Then you can press ! and start typing your search pattern (you can make this more advanced/complex if you want, but simple is usually best). Or override the / to insert the ^ and space automatically: nnoremap / /^<Space>. You can use a filetype netrw autocmd to only apply this for NetRW buffers. Nov 27, 2022 at 15:58
  • 1
    @weberjn "Slash" is standard key used everywhere in Vim to search through text. If you have problems with pressing standard Vim keys you need to revise your keyboard/keymap/mappings etc.
    – Matt
    Nov 27, 2022 at 17:36
  • @Matt its the caret, it needs a space to appear (or an a for â)
    – weberjn
    Nov 28, 2022 at 13:42
  • @weberjn Try it without the caret and space, I search all the time in Vim and don't even know where the caret is on my keyboard.
    – Lizzan
    Nov 29, 2022 at 17:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.