From be2afbffbbd41b530956e4dd7b25c62e1d751b8d Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Thu, 11 May 2017 17:15:18 +0200 Subject: Added command to grep in all open buffers --- vimrc-full | 3 +++ 1 file changed, 3 insertions(+) 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") " put the current files name after the cursor... let @f = ":exe ':normal a'.expand('%:t')" + " grep all buffers for a given string and return result in a quickfix window + let @q = ":cex [] | bufdo vimgrepadd /foo/g % | cw" + " exec current line as a command, insert output of command (from: https://youtu.be/MquaityA1SM?t=35m45s) nnoremap Q !!$SHELL -- cgit v1.2.3