-
-
Save dep-deprecated/5e26da6ef8eb2f3a7f2da345bd180cc8 to your computer and use it in GitHub Desktop.
Vim Open With: Open all files in vim matching a string
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
if [[ -z "$1" ]]; then | |
echo 'missing search' | |
else | |
vim $(ag --html --js --css --py -l "$1") -c /"$1" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment