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
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?) 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$ Another question. How can I move my cursor to character 99375 in the tags file in vim to see where the error is occurring? Thanks, very much, On Thu, Aug 6, 2009 at 10:19 AM, bill lam<[email protected]> wrote: > Brian, > > I typical line in ctags generated by jtags look like this, I denoted > the hidden tab as ^I > > boxopen^I./main/stdlib.ijs^I/^boxopen=: <^:(L.=0:)$/;"^Id > > This is the jtags that I hacked from Martin's work. Hopefully it will > not be mal-formatted by email. > > > #!/bin/sh > > dir="$1" > : "${dir:=.}" > > cd "$dir" > find . -iname '*.ijs' -print0 | xargs -0 awk ' > /([a-zA-Z][a-zA-Z0-9_]*)[ \t]*=:/ { > tag=$0; sub (/[ \t]*/, "", tag) ; sub (/=:.*/, "", tag) > printf ("%s\t%s\t/^%s$/;\"\td\n", tag, FILENAME, $0) > }' | LC_COLLATE=C sort > tags > > I think TAGS is convention used in emacs but it does not matter > anyway. What is your output for " :set tags? " with an j file > opened in buffer? I also put the following autocmd in ~/.vimrc where > ~/share/jsoftware/j602/system/tags is my tag for j system, while > ~/project/jproject/tags is the tag for my j project folder > > if has("autocmd") > augroup filetypedetect > au! > au! BufEnter ~/project/jproject/* setlocal > tags+=~/project/jproject/tags,~/share/jsoftware/j602/system/tags > au! BufRead,BufNewFile *.ijs setlocal > tags+=~/share/jsoftware/j602/system/tags > augroup END > endif > > I use 'exuberant ctags' instead of jtags to generate tags for j > scripts because it run a little bit faster. > > -- > regards, > -- (B=) ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
