Open a list of files in VIM using separate terminal windows

find . -name "*.java" -exec gnome-terminal \-x vim {} \;
Not that useful really, more novel. Can open up an awful lot of terminal windows.

By: root
2009-02-10 09:38:04

What Others Think

This is poor find usage. To avoid extra processes, you should spit the output to xargs so that multiple filenames will be passed at once: find . -name \*.java -print0 | xargs -0 gnome-terminal -x vim This may end up creating only one window with many files in separate buffers though. If you want lots of windows, you have to use the "-l" flag to xargs.
rae · 704 weeks ago
But no less interesting.
Williebee · 703 weeks and 6 days ago
The demons told me everything indianapolis detective agency
tillyracker · 64 weeks and 1 day ago
I agree with rae, although there may be some interesting aspects to this. Look over at roofing company gulfport
richardsikes18 · 62 weeks and 6 days ago
Best tree services advice. tree removal
JacksonS54 · 62 weeks and 1 day ago
I had found that the information is very helpful. That’s a awesome command you posted.">houses to buy
janejones4237 · 61 weeks and 6 days ago
I concur with rae, despite the fact that there might be some intriguing viewpoints to this. Investigate at pool installation
casseverhart13 · 61 weeks ago
Working.. Thank you. | $[url=]Driveway Concrete[/url]
marosol · 60 weeks and 3 days ago">Lowell Painters
marosol · 60 weeks and 3 days ago
<a href="">Lowell Painters</a>
marosol · 60 weeks and 3 days ago
It works! Thanks for sharing.
Kent35 · 57 weeks and 3 days ago
What a great topic to discuss, keep sharing useful information with us house painting
mirasol · 56 weeks and 6 days ago
I admire your website because you are always posting great input on this issue. pool renovation
mirasol · 56 weeks and 6 days ago
Open a terminal window and type "vim". Then, prepend the path of each file to be opened with the output directory from VIM. For instance, if you wanted to open "/tmp/my_file" in vim: screen enclosure services Edgewater
andrealim199320 · 52 weeks and 4 days ago
Unfortunately, I don't have a VIM program hence I can't test this out. Anyway, thanks for sharing this command line. P.S. please check out this polished concrete Canberra service and let me know what you think of it.
tlrcliff · 50 weeks and 5 days ago
Wow, I actually had to bookmark a site! this is a first. Keep it up.. Landscaping Lethbridge
lindamartn15 · 48 weeks and 2 days ago
Your post is very helpful and information is reliable. I am satisfied with your post. Thank you so much for sharing this wonderful
johnlead · 45 weeks and 4 days ago
Pretty informative. Who else enjoying JAVA here? See more
alfsavage10 · 44 weeks and 1 day ago
seofox · 37 weeks and 5 days ago
This is exactly what I'm looking for, Thanks for sharing! Ryan for
Chaddychaddy · 37 weeks and 1 day ago
if any user want to add FREE Backlink of their website or submit seo link building free with high TF/CF site you can check this site Free Link Building / SEO FREE Backlink Site / Free Backlink Site / Free Guest Post Backlink / Free Linkbuilding for SEO
megan · 32 weeks and 1 day ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this? is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.


Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: