summaryrefslogtreecommitdiff
path: root/.vim
diff options
context:
space:
mode:
authorJohannes Stolp <jstolp@vgfr65cs2.internal.synopsys.com>2016-05-28 12:46:18 +0200
committerJohannes Stolp <jstolp@vgfr65cs2.internal.synopsys.com>2016-05-28 12:46:18 +0200
commit526bea9511f2845f15eca7982842a9780e0b78bf (patch)
tree5c8d0cb1a3bfbbe84cb3385fe1b08b919fde12af /.vim
parent0ce14bf5b5862fbdebbdfb3526b58e52511dd2a3 (diff)
downloaddotfiles-526bea9511f2845f15eca7982842a9780e0b78bf.tar.gz
dotfiles-526bea9511f2845f15eca7982842a9780e0b78bf.zip
Added vim shortcut to grep and print into current buffer
Diffstat (limited to '.vim')
-rw-r--r--.vim/vimrc_files/keymaps.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/.vim/vimrc_files/keymaps.vim b/.vim/vimrc_files/keymaps.vim
index 5862b2f..b430240 100644
--- a/.vim/vimrc_files/keymaps.vim
+++ b/.vim/vimrc_files/keymaps.vim
@@ -68,3 +68,7 @@ nnoremap <c-n> :call ToggleRelativeNumber()<CR>
" Open BufferExplorer
nnoremap <C-b> :call BufExplorer()<CR>
+
+
+" invoke grep and print output into current buffer
+nnoremap <C-g> :read !grep -nI