From 8ef1ba06bfcbd38d552a88de4069560254270bac Mon Sep 17 00:00:00 2001 From: Reiner Herrmann Date: Thu, 29 Dec 2016 16:21:23 +0100 Subject: vimrc: define convenience wrapper function for grep Plain :grep keeps output open and waits for confirmation before returning to vim, doesn't show the quicklist and jumps to the first result. --- vimrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vimrc b/vimrc index 658bdf4..af11d10 100644 --- a/vimrc +++ b/vimrc @@ -94,6 +94,8 @@ noremap nmap [5^ nmap [6^ +" more convenient grepping +command -nargs=+ Grep execute 'silent grep! ' | execute 'redraw!' | execute 'copen' " folding settings; disabled for now because of performance problems "set foldmethod=syntax " fold automatically by syntax rules -- cgit v1.2.3