diff options
author | Max Christian Pohle | 2017-05-11 17:15:18 +0200 |
---|---|---|
committer | Max Christian Pohle | 2017-05-11 17:15:18 +0200 |
commit | be2afbffbbd41b530956e4dd7b25c62e1d751b8d (patch) | |
tree | 50f4dd5a550eca395ef59052f1b244c897880d49 /vimrc-full | |
parent | 210bcdcc3e1860615f6158f4fcdd56445fcb9285 (diff) | |
download | vim-be2afbffbbd41b530956e4dd7b25c62e1d751b8d.tar.bz2 vim-be2afbffbbd41b530956e4dd7b25c62e1d751b8d.zip |
Added command to grep in all open buffers
Diffstat (limited to 'vimrc-full')
-rw-r--r-- | vimrc-full | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 | ||