# HG changeset patch # User Meredith Howard # Date 1489786339 14400 # Node ID 210500a8d0f344b95ef5d03ee40794610cc89579 # Parent 5c9cdf7fa51215c4d7fc06bd8749208afa2865b2 Add Ag shortcut diff --git a/.vimrc b/.vimrc --- a/.vimrc +++ b/.vimrc @@ -130,7 +130,10 @@ nmap gb map gV `[v`] " clear all interestingwords with \\k since \K is ri.vim -nnoremap k :call UncolorAllWords() +nmap k :call UncolorAllWords() + +" use Ag for a recursive * +nmap * :call ag#Ag('grep', '--literal ' . shellescape(expand(""))) " K: doc, gK: Doc w/o using syntax hints, gKK: doc current filename nmap K :call ViewDoc('doc', expand(''))