Hi,

On 6/27/06, SHANKAR R-R66203 <[EMAIL PROTECTED]> wrote:
If I type
   :tag
I get the following Error Message.

E562: usage: cstag <ident>


It looks like you are using cscope and not a "tags" file for doing the
tag jumps. Some of the tags commands doesn't work properly with
the cscope interface.

- Yegappan


>-----Original Message-----
>From: Yegappan Lakshmanan [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, June 28, 2006 11:46 AM
>To: SHANKAR R-R66203
>Cc: [email protected]
>Subject: Re: problem in understading "0tag" usage
>
>Hello,
>
>On 6/27/06, SHANKAR R-R66203 <[EMAIL PROTECTED]> wrote:
>> Hi All,
>>
>> I am using tags heavily.
>>
>> 0tags command seems to not work properly.
>>
>> Let me explain the problem:
>>
>> When I type tags, the following is printed by VIM.
>>
>>   # TO tag         FROM line  in file/text
>>   1  1 mcu_mac7201         1  \Profiles\r66203\_tags\LF\harlech.hier
>>   2  1 core_mac7201     1017
>> ~\..\..\Projects\Harlech\verilog\mcu_mac7201.v
>>   3  1 ipss_mac7201     1696
>> ~\..\..\Projects\Harlech\verilog\core_mac7201.v
>> > 4  1 crg_arm          1908  crg_arm #(MOD_EN_WIDTH) crg_arm (
>>   5  1 crg_core          472
~\..\..\Projects\Harlech\verilog\crg_arm.v
>>   6  1 crg_cgen          448
>> ~\..\..\Projects\Harlech\verilog\crg_core.v
>>
>>
>> I am currently at tag#4 i.e. crg_arm
>> I want to go to tag#5, i.e. crg_core
>>
>> So, I type the following in the command line
>> :0tag
>> As per my understanding with the 0tag documentation, this command
takes
>> to the "last used tag".
>> This does not work.
>> VIM reports an error message.
>>
>> How do I go to tag#5, without typing
>> :tag crg_core
>>
>
>You can use ":tag" command to jump to the next tag in the tag
>stack. The ":0tag" command jumps to the current tag in the tag
>stack. You can use the ":pop" command (or CTRL-T) to jump to
>the previous tag in the tag stack.
>
>- Yegappan

Reply via email to