Home > Operation and Maintenance > Linux Operation and Maintenance > Problems and solutions encountered with ctags jump in Vim

Problems and solutions encountered with ctags jump in Vim

零下一度
Release: 2017-06-28 14:28:14
Original
3695 people have browsed it

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 g

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template