aboutsummaryrefslogtreecommitdiff
path: root/vimrc-full
diff options
context:
space:
mode:
authorMax Christian Pohle2017-05-11 17:15:18 +0200
committerMax Christian Pohle2017-05-11 17:15:18 +0200
commitbe2afbffbbd41b530956e4dd7b25c62e1d751b8d (patch)
tree50f4dd5a550eca395ef59052f1b244c897880d49 /vimrc-full
parent210bcdcc3e1860615f6158f4fcdd56445fcb9285 (diff)
downloadvim-karlmarks-be2afbffbbd41b530956e4dd7b25c62e1d751b8d.tar.bz2
vim-karlmarks-be2afbffbbd41b530956e4dd7b25c62e1d751b8d.zip
Added command to grep in all open buffers
Diffstat (limited to 'vimrc-full')
-rw-r--r--vimrc-full3
1 files changed, 3 insertions, 0 deletions
diff --git a/vimrc-full b/vimrc-full
index 8e84f90..d5b601b 100644
--- a/vimrc-full
+++ b/vimrc-full
@@ -518,6 +518,9 @@ if has("autocmd")
518 " put the current files name after the cursor... 518 " put the current files name after the cursor...
519 let @f = ":exe ':normal a'.expand('%:t')" 519 let @f = ":exe ':normal a'.expand('%:t')"
520 520
521 " grep all buffers for a given string and return result in a quickfix window
522 let @q = ":cex [] | bufdo vimgrepadd /foo/g % | cw"
523
521 " exec current line as a command, insert output of command (from: https://youtu.be/MquaityA1SM?t=35m45s) 524 " exec current line as a command, insert output of command (from: https://youtu.be/MquaityA1SM?t=35m45s)
522 nnoremap Q !!$SHELL<CR> 525 nnoremap Q !!$SHELL<CR>
523 526
..