sponsor Vim development Vim logo Vim Book Ad

yate : This plugin makes search in tags more convenient.

 script karma  Rating 84/27, Downloaded by 4195  Comments, bugs, improvements  Vim wiki

created by
Evgeny Podjachev
script type
This plugin makes search in tags more convenient. It holds query and search result in one buffer for faster jump to desired tag.

Source code is also available on bitbucket: https://bitbucket.org/madevgeny/yate.

Command :YATE toggles visibility of search buffer which will be closed after tag was selected.
Command :YATEStationary toggles visibility of search buffer which will not be closed after tag is selected, instead cursor remains in YATE buffer to allow select another tag.
Parameter g:YATE_window_height sets height of search buffer. Default = 15.
Parameter g:YATE_strip_long_paths enables(1)/disables(0) cutting of long file paths. Default = 1.
Parameter g:YATE_enable_real_time_search enables(1)/disables(0) as-you-type search. Default = 1.
Parameter g:YATE_min_symbols_to_search sets search string length threshold after which as-you-type search will start. Default = 4.
Parameter g:YATE_max_matches_to_show sets the maximum number of matches to display. If it's negative than all lines will be shown. Default = -1.
Parameter g:YATE_history_size sets the maximum number of stored search queries in history. Default = 10.
Parameter g:YATE_clear_search_string controls clearing of search string on next YATE buffer invocation. Default = 1.

To get list of matching tags set cursor on string containing expression
to search (in YATE buffer) then press <Tab> or <Enter>, never mind if
you are in normal or insert mode.

To open tag location set cursor on string with desired tag and
press <Enter> or double click left mouse button on this string,
never mind if you are in normal or insert mode.

To open tag in new tab press <Ctrl-Enter>, in new horizontal
splitted buffer <Shift-Enter>, in new vertical splitted buffer <Ctrl-Shift-Enter>.

To get queries history press <Ctrl-H> in insert or normal mode in
search string. Autocompletion using history also works by <Ctrl-X><Ctrl-U>.
install details
Just drop this file in your plugin directory.
If you use Vundle (https://github.com/gmarik/vundle/), you could add


to your Vundle config to install yate.

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
yate.vim 1.4.2 2013-12-18 7.0 Evgeny Podjachev Fixed error when running YATEStationary. Thanks to Eoin Mcloughlin.
yate.vim 1.4.1 2012-10-31 7.0 Evgeny Podjachev Fixed issue with TabBar plugin.
Removed yate buffer from buffers list.
Better work with history popup menu.
yate.vim 1.4.0 2012-07-21 7.0 Evgeny Podjachev Added command YATEStationary to look into several tags without reopen YATE buffer.
Fixed conflict if already there is mapping on Q.
yate.vim 1.3.1 2012-07-20 7.0 Evgeny Podjachev Disabled AutoComplPop plugin in YATE buffer.
yate.vim 1.3.0 2012-07-19 7.0 Evgeny Podjachev Added parameter g:YATE_clear_search_string to control clearing of search string on next YATE buffer invocation.
Pressing <Enter> in search string if length of search string is more or equal g:YATE_min_symbols_to_search lead to open first tag in search results.
yate.vim 1.2.5 2012-07-18 7.0 Evgeny Podjachev Force disable line numbering in YATE buffer.
yate.vim 1.2.4 2012-07-14 7.0 Evgeny Podjachev Fixed leaving of insert mode after leaving YATE buffer.
yate.vim 1.2.3 2012-07-14 7.0 Evgeny Podjachev Insert mode is default in YATE buffer.
yate.vim 1.2.2 2009-05-28 7.0 Evgeny Podjachev Fixed cleaning of search string in some cases.
yate.vim 1.2.1 2009-05-01 7.0 Evgeny Podjachev History menu (<C-H>) also works in normal mode.
yate.vim 1.2.0 2009-04-04 7.0 Evgeny Podjachev Added history of search queries.
yate.vim 1.1.1 2009-01-14 7.0 Evgeny Podjachev Slightly optimized search results output.
Fixed resizing of YATE window when vim is resized.
yate.vim 1.1.0 2008-09-13 7.0 Evgeny Podjachev Fixes in as-you-type search to improve its usability and fix some bugs.
Added highlight of line with cursor.
Added parameter g:YATE_max_matches_to_show defining the maximum number of matches to display.
Search results were protected from editing.
yate.vim 1.0.1 2008-03-19 7.0 Evgeny Podjachev Fixed serious bug which caused the impossibility of inputing characters nowhere but at the and of the search string.
Add support of GetLatestVimScripts.
yate.vim 1.0.0 2008-03-02 7.0 Evgeny Podjachev Added automatic search after input of any character (so called as-you-type search).
Long file paths may be cut to fit line width.
Fixed bug preventing jump by tags containing ~ (e.g. c++ destructors).
Fixed bug preventing jump by tags in files with mixed line ends (Win/Unix).
yate.vim 0.9.2 2007-12-23 7.0 Evgeny Podjachev Attempt to search empty string doesn't produce error.
Replacement of modified buffer works correct.
Close YATE buffer externally (by :q, ZZ etc.) dosn't break its visibility toggle.
Fixed bug leading to failure to open to tag containing square brackets.
yate.vim 0.9.1 2007-11-29 7.0 Evgeny Podjachev Search string isn't cleared if there are no matched tags.
Bug fixes.
yate.vim 0.9 2007-11-11 7.0 Evgeny Podjachev Initial upload
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.