[racket-users] Re: Using ctags and vim with Racket

2018-09-14 Thread Marc Kaufmann
Thanks Alex, that was it. I thought I had tried it by setting .rkt to be 
interpreted as .scm, but I think that got overridden by vim-racket plugin. 
What I now did is:

ctags --language-force=scheme *.rkt

Cheers,
Marc

On Friday, September 14, 2018 at 12:24:32 AM UTC+2, Alex Harsanyi wrote:
>
>
>
> On Thursday, September 13, 2018 at 10:19:37 PM UTC+8, Marc Kaufmann wrote:
>>
>> Hi all,
>>
>> for the first time I wanted to use ctags today, which generates a bunch 
>> of tags so that one can jump to and from function definitions and the like 
>> in vim. However, the program generates no tags whatsoever for Racket, which 
>> wasn't too surprising.
>>
>> I am using the vim-racket plugin. Does anyone use vim with ctags -- or 
>> vim with any plugin that does a good job of jumping between definitions and 
>> works with Racket?
>>
>
> The likely problem is that ctags does not recognize the .rkt file 
> extension as a scheme file.  You will need to find what command line option 
> to use to map the .rkt file extension to scheme.  For example, in etags 
> (the Emacs equivalent), I use:
>
> find . -name "*.rkt" -print | etags -l scheme -
>
> Alex. 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[racket-users] Re: Using ctags and vim with Racket

2018-09-13 Thread Alex Harsanyi


On Thursday, September 13, 2018 at 10:19:37 PM UTC+8, Marc Kaufmann wrote:
>
> Hi all,
>
> for the first time I wanted to use ctags today, which generates a bunch of 
> tags so that one can jump to and from function definitions and the like in 
> vim. However, the program generates no tags whatsoever for Racket, which 
> wasn't too surprising.
>
> I am using the vim-racket plugin. Does anyone use vim with ctags -- or vim 
> with any plugin that does a good job of jumping between definitions and 
> works with Racket?
>

The likely problem is that ctags does not recognize the .rkt file extension 
as a scheme file.  You will need to find what command line option to use to 
map the .rkt file extension to scheme.  For example, in etags (the Emacs 
equivalent), I use:

find . -name "*.rkt" -print | etags -l scheme -

Alex. 

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.