[vim/vim] :tag takes ages with ignorecase (Issue #18838)

3 views
Skip to first unread message

dzwdz

unread,
Nov 29, 2025, 10:10:19 AM11/29/25
to vim/vim, Subscribed
dzwdz created an issue (vim/vim#18838)

Steps to reproduce

  1. Get a large C codebase - I was using a recent kernel tarball.
  2. Generate tags with e.g. ctags -R ..
  3. Open Vim, :set ignorecase, :tag ip_mreq (the specific tag doesn't matter).

The lookup will take a few seconds.

This can also be tested with:

  • time vim -Nu NONE -t ip_mreq +q (0.06s on my machine)
  • time vim -Nu NONE --cmd "set ignorecase" -t ip_mreq +q (~4s)

Expected behaviour

In general I expect the tag lookups to be instant.

They are indeed instant if I regenerate the tags file with --sort=foldcase or set noignorecase, but you don't get any signal that you're doing something wrong if you don't do that. I just thought Vim's tags implementation was crap up until now :P

Maybe Vim could display a warning if it has to fallback to linear search on the tags file?

Version of Vim

9.1, Included patches: 1-948, 950-1230, 1242, 1244

Environment

  • Debian 13.2
  • vim package version 2:9.1.1230-2
  • universal-ctags package version 5.9.20210829.0-2

Logs and stack traces


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/18838@github.com>

Christian Brabandt

unread,
Feb 9, 2026, 2:53:47 PM (20 hours ago) Feb 9
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#18838)

There is a bit of context here: :h 'tagbsearch' Make sure to follow the related options.
I am not sure echoing the particular search method is much of help, especially when using a small tag file, so this may turn out to be more annoying than useful after all.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/18838/3873517745@github.com>

Reply all
Reply to author
Forward
0 new messages