summaryrefslogtreecommitdiff
path: root/.bashrc.files/functions
diff options
context:
space:
mode:
Diffstat (limited to '.bashrc.files/functions')
-rw-r--r--.bashrc.files/functions6
1 files changed, 6 insertions, 0 deletions
diff --git a/.bashrc.files/functions b/.bashrc.files/functions
new file mode 100644
index 0000000..fbab13d
--- /dev/null
+++ b/.bashrc.files/functions
@@ -0,0 +1,6 @@
+function vimgrep()
+{
+ if [ -z $1 ]; then echo -e "vimgrep PATTERN PATH"; return 1; fi
+ if [ -z $2 ]; then echo -e "vimgrep PATTERN PATH"; return 1; fi
+ \grep -IRn $1 $2 | vim -
+}