m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2019-11-03 22:40:29 +0100
committerMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2019-11-03 22:40:29 +0100
commit974e652e8597b3623393ad56f67d19fcc1eaee03 (patch)
tree072218b34caa3cc2b78efaf0a0fa09feb0d3e13f
parentaa148e2a7d531ec3402208096b31a81dda8a81b9 (diff)
Add vimgrep section
-rw-r--r--vim.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/vim.md b/vim.md
index 1da057c..9dda8a7 100644
--- a/vim.md
+++ b/vim.md
@@ -1,5 +1,15 @@
# Vim tricks
+## vimgrep
+
+Search through all files in a directory
+
+ :vimgrep /pattern/ **/*
+
+Open window with all instances:
+
+ :copen
+
## readline
vi keybindings in various `readline` and similar CLIs: