bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Feature request


From: Nathan Huizinga
Subject: Re: Feature request
Date: Mon, 25 Aug 2003 08:46:29 +0200

At 11:48 PM 8/23/03, Shigio Yamaguchi wrote:
Hi,
> What I would like to have is "global -xt" which outputs like "global -t",
> but with
> an additional <TAB> and the field containing the line. This output I can
> parse with
> VIm to filter the filename, line nr. and the newly added field.

Why do you like <TAB> rather than blanks as a separator?
Is it difficult to do your job using "global -x"?
--
Shigio Yamaguchi <address@hidden> - Tama Communications Corporation
Spare mail address: <address@hidden>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3

Hi,

I had some trouble getting VIm correctly parsing the output with blanks as separators, but I now have managed to get it working with blanks instead. So the patch is no longer needed anymore.

For everyone who is interrested getting VIm and global together put this in your .vimrc:

" Use global as grep application
set grepprg=global\ -x
set grepformat=%*[^\ ]%*[\ ]%l%*[\ ]%f%*[\ ]%m

map <silent> <C-\> :grep <C-R>=expand("<cword>")<CR><CR><CR>
map <silent> <C-_> :grep! -r <C-R>=expand("<cword>")<CR><CR>:cw<CR>

Nathan Huizinga
Embedded Software Engineer
Chess eT





reply via email to

[Prev in Thread] Current Thread [Next in Thread]