A better idea might be to just use the "long form" with `-r 
requirements.txt`… then `gf` should work as expected. It is entirely 
possible for files to start with `/-./`, which shouldn't necessarily be 
removed?

On Saturday, September 3, 2022 at 4:39:12 AM UTC-4 wzy wrote:

> An example shell script:
>
> pip install -ihttps://mirrors.bfsu.edu.cn/pypi/web/simple -rrequirements.txt
>
> -rrequirements.txt is a short form for -r requirements.txt. So how about 
> setlocal 
> includeexpr=substitute(v:fname,'^-.','','g') for all shell filetype 
> (sh/bash/zsh/etc)?
>
> —
> Reply to this email directly, view it on GitHub 
> <https://github.com/vim/vim/issues/11045>.
> You are receiving this because you are subscribed to this thread.Message 
> ID: <vim/vim/issues/[email protected]>
>

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/4f9c1cbe-a0d7-4812-86fb-689a9aea0cb7n%40googlegroups.com.

Raspunde prin e-mail lui