Hi,

SHANKAR R-R66203 wrote:
> I found out that
>    :his /
> Gives the listing of the search history.
> 
> In a particular file, I tried using
> :his /
> 
>       #  search history
>       4  \<wallace_tree_4_w4\>
>       5  ^I
>       6  crg_arm
>       7   
>       8  ipss
>      10  #
>      11  perl D:/Profiles/r66203/utils/v2html/vhier_ls.pl -f
> verilog.harlech > test.hier
>      13  \<usb_rcv\>
>      14
> \(^\s*\(\<else\>\)[EMAIL PROTECTED](\#\s*(\s*\w\+\s*)\s\+\)\=\w\+\_s*(\(\/\/\
> )\=\)|\(^\s*\w\+\s\+#\s*(.\{-},\)
>      15
> \(\(^\s*\(\<else\>\)[EMAIL PROTECTED](\#\s*(\s*\w\+\s*)\s\+\)\=\w\+\_s*(\(\/\
> /\)\=\)|\\)
>      16
> \(\(^\s*\(\<else\>\)[EMAIL PROTECTED](\#\s*(\s*\w\+\s*)\s\+\)\=\w\+\_s*(\(\/\
> /\)\=\)|\(^\s*\w\+\s\+#\s*(.\{-},\)\)
>      17
> \(\(^\s*\(\<else\>\)[EMAIL PROTECTED](\#\s*(\s*\w\+\s*)\s\+\)\=\w\+\_s*(\(\/\
> /\)\=\)\\|\(^\s*\w\+\s\+#\s*(.\{-},\)\)
>      20  \<reg_out25\>
>      87  \<rd_even_flash_enb\>
>     138  pllmrbi_ipi
>     155  ^\s*pllmrbi_ipi\>
>     156
> \(^\s*\(\<else\>\)[EMAIL PROTECTED](\#\s*(\s*\w\+\s*)\s\+\)\=\w\+\_s*(\(\/\/\
> )\=\)
>     162  \(^\s*\w\+\s\+#\s*(.\{-},\)
>     177  \<ipp_obe_txdata_b\>
>>   192
> \(\(^\s*\(\<else\>\)[EMAIL PROTECTED](\#\s*(\s*\w\+\s*)\s\+\)\=\w\+\_s*(\(\/\
> /\)\=\)\|\(^\s*\w\+\s\+#\s*(.\{-},\)\)
> 
> I do not understand why the numbers are not consecutive.

whenever you re-use a search pattern by using <UP> the search pattern
is removed from its current position in the history and put at the end
of it.

> How the search history can be deleted ??

There is a histdel() function.

> And finaly another question -
> 
> How do I put the result of the following command in a variable.
>     :his / -2 

  :let var = histget('/', -2)

Regards,
Jürgen

-- 
Jürgen Krämer                              Softwareentwicklung
HABEL GmbH & Co. KG                        mailto:[EMAIL PROTECTED]
Hinteres Öschle 2                          Tel: +49 / 74 61 / 93 53 - 15
78604 Rietheim-Weilheim                    Fax: +49 / 74 61 / 93 53 - 99

Reply via email to