On 2006-09-07, Daniel Nogradi <[EMAIL PROTECTED]> wrote: > Great! Thanks a lot, this works just the way I like it, only matching > exact words not subwords. So after all my mapping became (just in case > someone was interested): > > map <buffer> gr :w<cr>:grep -r --exclude=tags > '<bslash><lt><c-r><c-w><bslash>>' %:p:h/<cr><cr><cr>:cn<cr> > > And this mapped 'gr' to (1) save the file (otherwise vim would have > been complaining about unsaved files before jumping to the next) > ...
If you change the :w to :up, the buffer will be saved only if it has been modified. Regards, Gary -- Gary Johnson | Agilent Technologies [EMAIL PROTECTED] | Wireless Division | Spokane, Washington, USA