On Fri, 07 Aug 2009, Brian Schott wrote:
> Bill,
> 
> With both versions of the unix script :set produces but I don't know
> what you mean by "with an j file opened in buffer?" and maybe that is
> the problem.
> tags=./tags,tags

That is vim's default. Most likely it expects a tags (with the name
"tags" in current directory.

> 
> Adding to the .vimrc file did not seem to make any difference except
> that  :set tags now produces
> tags=./tags,tags,~/share/jsoftware/j602/system/tags
> (I am not using projects, but I included that part in the .vimrc also.
> Is the fact that it is missing here a signal that I did something
> wrong?)

My J root folder is at /home/bill/jsoftware/j602 and I cd to 
/home/bill/jsoftware/j602/system and generate a tags file there, you
have to change that according to your tags location.  Suppose you kept
your personal j file under
/users/brian/project  and generated a tags as
/users/brian/project/tags  then you can try typing in vim normal mode,
:set tags+=/users/brian/project/tags

then verify with :set tags?  and then try
:ts iomin

it should display a list of definition of iomin

You can also generate another ctags for J installed files and added it
to vim's tags variable
:set tags+=/users/brian/project/tags,/path/to/j-system-tags


> With the version of the unix script you just supplied,
> the error message when I control-] changes to
> E426: tag not found: iomin
> 
> I used jtags from Martin's cvs command and would need help to change
> it to exuberant ctags.
> 
> Below are two lines from my tags file with :set list.
> 2119 iomin^I./nonhiercluster.ijs^I/^iomin =: i.<./  NB. index of (IO)
> minimum        $/$
> 2120 iomin =: i.<./  NB. index of (IO) minimum$

the shell script I posted in the last email should already work for
vim.  If you have already installed and want to use the exuberant ctags,
put the following three lines into a file named ".ctags" under your
home directory and you can use it that ctags command instead of jtags.

--langdef=j
--langmap=j:.ijs
--regex-j=/([a-zA-Z][a-zA-Z0-9_]*)[ \t]*=:/\1/d,definition/


> Another question.
> How can I move my cursor to character 99375 in the tags file in vim to
> see where the error is occurring?

I guess if the tags contains no wide unicode characters, the character
offset is just the byte offset. use to :go command,eg :go 99375

If your tags still does not work, I can email you my tags for j602
system files for testing.

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to