]> code.delx.au - dotfiles/commitdiff
Added vimf
authorJames Bunton <jamesbunton@delx.net.au>
Fri, 24 Sep 2010 13:16:49 +0000 (23:16 +1000)
committerJames Bunton <jamesbunton@delx.net.au>
Fri, 24 Sep 2010 13:16:49 +0000 (23:16 +1000)
.bash/functions

index ef4f6c5af281ce1b35d357795d73f8021c16050c..3a35c1808ef34b125ea18cda2532e9678de7d1f4 100644 (file)
@@ -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"