Being in vim.tiny in command mode and executing some shell command with :!, is there a way that I can benefit from the shell expansions, namely from the filename generation? When I simply enter key, the filename does not get expanded, instead I get the ^I character.

  • 1
    What is it specifically that you'd like to do? An "expansion" can be many different things, such as variable expansion, command substitution, brace expansion, filename generation (globbing) etc. – Kusalananda Apr 4 '19 at 7:11
  • let's say filename generation – stevica Apr 4 '19 at 7:14
  • 2
    @stevica Vim has tab completion for filenames. You can do :edit some<tab>/somepther<tab>, for example. There's also :find someOtherDocu – muru Apr 4 '19 at 7:47
  • 1
    In nvi you should :set filec=\<tab>, where <tab> is an actual Tab you can enter with Ctrl-V Ctrl-I or Ctrl-V Tab. You can put that in your ~/.nexrc. – mosvy Apr 4 '19 at 8:29
  • 1
    In the standard vi there simply isn't such feature. – mosvy Apr 4 '19 at 8:33

Your Answer

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

Browse other questions tagged or ask your own question.