From 53caca30ab56fba09925f919ca81201e8ef6e6d0 Mon Sep 17 00:00:00 2001 From: James Bunton Date: Fri, 24 Sep 2010 23:16:49 +1000 Subject: [PATCH] Added vimf --- .bash/functions | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.bash/functions b/.bash/functions index ef4f6c5..3a35c18 100644 --- a/.bash/functions +++ b/.bash/functions @@ -66,6 +66,11 @@ function mcd { cd "${1}" } +# Usage: vimf somefile +# Does a recursive search of the current directory for somefile, then edits it +function vimf { + find . -name "${1}" -exec vim '{}' + +} # Load local functions ssource "${HOME}/.bash/functions_local" -- 2.39.2