Re: Shell command history in VIM?

2006-05-18 Thread Peter Palm
Op donderdag 18 mei 2006 16:38, schreef Wijaya Edward:
 Hi,

 Is there a way to enable history view of
 all the shell command executed under vim,
 i.e. with :! shell_command

Well, as long as the info is known by vim (see :help viminfo), you could do:
q:
to open the command-line window

and then:
g/^!/p
to print all the lines beginning with !


Regards,


Peter Palm


Re: Shell command history in VIM?

2006-05-18 Thread Yakov Lerner

On 5/18/06, Wijaya Edward [EMAIL PROTECTED] wrote:

Is there a way to enable history view of
all the shell command executed under vim,
i.e. with :! shell_command


In an indirect way, sort of, yes. You need to, first, pull all history
lines (using either redir+:history, or using histget() function), and second,
filter out lines not beginning with '!'. Finally, you'd add resulting lines
into temp buffer for viewing. Is this what you are looking for ?

Yakov


Re: Shell command history in VIM?

2006-05-18 Thread Gary Johnson
On 2006-05-18, Wijaya Edward [EMAIL PROTECTED] wrote:
 Hi,
 
 Is there a way to enable history view of 
 all the shell command executed under vim,
 i.e. with :! shell_command

If you are content to look at them one line at a time, just type

:!

and then use the up arrow to step through all of the command in your 
history buffer that begin with :!.

One way to see all these commands at once is to type

q:

in normal mode or type the 'cedit' character in command mode to open 
the command-line window.  Then execute

g/^!

HTH,
Gary

-- 
Gary Johnson | Agilent Technologies
[EMAIL PROTECTED] | Wireless Division
 | Spokane, Washington, USA