On 13/03/10 04:01, bronson wrote:
When I hit Control-] on "empty?" in Ruby code, Vim says "E426: tag not
found: empty\?"   This is a bug, right?  I can reach the empty? tag by
hitting ":ta empty?", it's just Control-] that fails.

Can I fix this?  Is there a way to make Vim search for "empty?"
instead of "empty\?"?  FWIW, hitting Control-] on "empty!" works
great.

I have this in my vimrc so that Ruby's oddball identifiers can be
recognized.

     autocmd FileType ruby setlocal iskeyword+=!,?

     - Scott

P.S. Let's not argue about whether ? in identifiers is a good idea or
not...  Personally I dislike it but it's not my choice.


To search for "empty?", try

        :tag empty?

which is the equivalent of the :help g?? command that I used (see below), and AFAICT it works.



There are a lot of tags containing question marks in the Vim help: to see them all, do

        :help ?<C-D>

where <C-D> means "hit Ctrl-D".

For instance,

        :help g??

brings me to the proper help paragraph, but then using Ctrl-] on the g?? in the left margin gives

        E149: Sorry, no help for g\?\?

IOW, I confirm the bug, also for help tags, at patchlevel 7.2.394 (but I think I've already seen that bug mentioned on-list -- maybe on vim_dev though).



Best regards,
Tony.
--
There are no games on this system.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to