Gary Johnson wrote:
If I open a new window, read into it the results of a grep command,
e.g.,
:r !grep -nH somepattern somefileset
and then try to use that buffer as a quickfix list or location list
with either the :cb or :lb commands, respectively, I get
E37: No write since last change (add ! to override)
If I then try to add ! to the :cb or :lb commands, I get
E477: No ! allowed
It seems to me that the :cb and :lb commands are missing the ability
to handle a !.
The most recent version of vim I had to verify this with was
7.0.178.
Regards,
Gary
If what you want to do with the output of grep is use it as a quickfix error
list, then use ":grep" or ":lgrep" instead of ":r !grep". Or you can also use
":vimgrep" or ":lvimgrep" for internal grep (with Vim-style regexps).
See ":help grep".
Best regards,
Tony.
--
Proposed Additions to the PDP-11 Instruction Set:
DC Divide and Conquer
DMPK Destroy Memory Protect Key
DO Divide and Overflow
EMPC Emulate Pocket Calculator
EPI Execute Programmer Immediately
EROS Erase Read Only Storage
EXCE Execute Customer Engineer
HCF Halt and Catch Fire
IBP Insert Bug and Proceed
INSQSW Insert into queue somewhere (for FINO queues [First in never out])
PBC Print and Break Chain
PDSK Punch Disk