Skip to content

Instantly share code, notes, and snippets.

@patrickleweryharris
Created July 26, 2019 02:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patrickleweryharris/c08cec0e9d6d01499a79d543f370f07a to your computer and use it in GitHub Desktop.
Save patrickleweryharris/c08cec0e9d6d01499a79d543f370f07a to your computer and use it in GitHub Desktop.
Find a file and open it in vim
#!/bin/bash
# Find and open in vim (if more than one file vim will open each in it's own buffer
find . -iname "$1" -exec vim {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment