Last Updated: February 25, 2016
·
270
· pascalh

Opening multiple files in vim using bash

One is browsing through the file system and wants to open all files in vim, which have a specific file extension. For example you want to open all JAVA files of the current directory and all of its subdirectories. Here is a simple bash-based solution using the find-command :

vim -p `find -name \*java -type f`