Oivvio
--
http://pipedreams.polite.se/about/
This command might work for you:
:command! -nargs=+ MyLgrep execute 'silent lgrep! <args>' | lopen 42
Note that the '!' form of lgrep means 'do not jump to first match', which may
or may not be what you want.
The location list window doesn't have to be made 42 lines high, of course.
You can then invoke this command like so:
:MyLgrep export ~/.bashrc
to find for example all occurrences of the pattern 'export' in your ~/.bashrc.
You might want to map this to a key sequence:
:nnoremap <Leader>g :MyLgrep
Note that its a tiny bit more convenient if you map to 'MyLgrep ' (with a
trailing space).
Britton
Thank you Britton! This bit of magic works remarkably well. Unfortunatly
I've just realized that vimgrep/lgrep don't play well with
my newfound love NERDTree.
Oivvio
--
http://pipedreams.polite.se/about/