Skip to content

Instantly share code, notes, and snippets.

@dep-deprecated
Created July 22, 2016 17:05
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Vim Open With: Open all files in vim matching a string
#! /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