Find and Open (in vim) Multiple Files
This is a quick set of examples for finding and opening multiple files in Vim.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
# Open all found files in vimdiff find . -name '.lando.yml' -exec vimdiff {} + # Open all found files, one-by-one find . -name '.lando.yml' -exec vim {} \; # Open all found files in tabs find . -name '.lando.yml' -exec vim -p {} + # Open all found files in vertical splits find . -name '.lando.yml' -exec vim -O {} + # Open all found files in horizontal splits find . -name '.lando.yml' -exec vim -o {} + |