sponsor Vim development Vim logo Vim Book Ad

supersearch : source view plugin

 script karma  Rating 75/33, Downloaded by 2159  Comments, bugs, improvements  Vim wiki

created by
tian guangyu
 
script type
ftplugin
 
description
The "Super Search" plugin is a source code browser plugin for Vim and provides an overview of the structure of the programming language files and allows you to efficiently browse through source code files for different programming languages.  You can visit the supersearch plugin home page for more information:
  https://github.com/hellotomcat/supersearch
这个项目是用来加速vim开发效率的
1.由于历史原因我们的项目目录中有许多无关的目录包含着无关的代码,导致生成的tags文件往往没有实际用途
2.当我们需要查看谁调用谁的问题时,要用:grep命令来搜索整个项目目录,相当不方便
现在好了:
有了supersearch插件,只要配置好与自己有关和目录,生成tags的事再也不用担心了(会自动生成tags文件),还能根据配置的目录进行全文搜索

跳转继续使用传统的ctrl+] 全文搜索目前定义为,s 在命令模式中,s直接搜索当前单词 在视图模式中先选择要搜索的文本,再按,s
 
install details
1.Download the supersearch.zip file and unzip the files to the $HOME/.vim/plugin/ The directory structure should be preserved: $HOME/.vim/plugin/supersearch.vim
2.Create a profile in the top-level directory of the project ("project.conf")
3.finished

直接把这个supersearch.vim放到.vim/plugin/目录中就可以了

Example
Project directory structure:

src
    --http
    --core
    --event
    --mail
    --misc
    --os

The configuration file (project.conf):

/http
/core
/event
/mail
/misc
/os

最后: 在插件文件的尾部定义了搜索快捷键,你可以自己修改为你喜欢的
 

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
supersearch.zip 1.6 2016-09-07 7.0 tian guangyu 1.修改检测tags方式.
2.默认在未配置格式化方式时,调用gg=G来格式化当前文件.
supersearch.zip 1.2 2015-06-18 7.0 tian guangyu 1.修复当前目录只有一个文件时搜索后无法跳转问题
2.修复生成tags文件错乱问题
3.搜索时过滤掉.swp文件
supersearch.zip 1.0 2015-06-17 7.0 tian guangyu Initial upload
ip used for rating: 3.145.97.248

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.
   
Vim at Github