This article mainly introduces "the problem of ctags jumping directly to the first matching line in Vim". It mainly involves aspects. Students who are interested in Linux tutorials can refer to: Intention to use ctags to search code When using ctrl + ], only one matching item will jump directly, if there are multiple matching items, all matching items will be listed and selected to jump. Using ctags in vim is a very comfortable...
Intention
When using ctags to search for code, after using ctrl + ], only one matching item will jump directly, if there are multiple matching items, all matching items will be listed and selected to jump
Problem
Using ctags in vim is a very comfortable thing, but sometimes some default configurations and unknown problems cause trouble when using ctags, such as:
When using ctags to search for code, use ctrl + ], by default, vim will take you to the first matching place. Sometimes this is not what you want, so how to jump to other places?
Solution
Use the :ts command
Add the following configuration in .vimrc: map
vimcdoc.sourceforge.net/ doc/tagsrch.html#tag-matchlist
The above introduces the problem of ctags jumping directly to the first matching line in Vim, including the relevant content. I hope friends who are interested in Linux tutorials can do it. helped.
The above is the detailed content of Problems and solutions encountered with ctags jump in Vim. For more information, please follow other related articles on the PHP Chinese website!