Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[request] v multiply files #6

Open
sunner opened this issue Sep 19, 2011 · 4 comments
Open

[request] v multiply files #6

sunner opened this issue Sep 19, 2011 · 4 comments

Comments

@sunner
Copy link

sunner commented Sep 19, 2011

If I have opened file foo.c and bar.c, I can use v foo and v bar to open them separately.

The request is that v foo bar can open both files concurrently in vim.

Even more, we can v multiply files in one line of command.

Thank you! Both z and v are must have for every machine of me!

@rupa
Copy link
Owner

rupa commented Oct 28, 2011

This would unfortunately break current behaviour, which I (at least) find useful ... v foo bar would open a file matching both 'foo' and 'bar' ... each argument is a separate, additive regex. This behaviour is intended to allow high flexibility for thinking mnemonically about file names.

Being able to open multiple files is indeed interesting and useful, and I've been thinking about it for a while, so I'll leave this issue open and maybe come up with a nice solution at some point.

@sitaramc
Copy link

sitaramc commented Oct 9, 2014

I would like to type "v mirr" and open all the files that match instead of only the first one.

Same for your example "v foo bar" opens all files that match foo and match bar also (not just the first one among the set of files that match both patterns).

What sunner asked can then be done by v foo|bar (I think).

@janwirth
Copy link

I second this feature request. v -m n string is my proposal to open the n most recent files containing the string. Opening all the files matching does not make so much sense because then one would have a large amount of buffers to choose from which adds up to the time saved through v.

@sitaram v a | b pipes the output of 'v a' to the command 'b'.

@ghost
Copy link

ghost commented Feb 3, 2020

When I made #18 I didn't see that this already existed.

So, +1 from me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants