File: supersearch.vim Author: Tian (root AT codecn DOT org) Version: 1.6 Last Modified: 2016.9.7 Copyright: Copyright (C) 2015 ~ 2016 Tian,Teikay
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
Installation ------------ 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.ini")
3. finished
------------
这个项目是用来加速vim开发效率的 1.由于历史原因我们的项目目录中有许多无关的目录包含着无关的代码,导致生成的tags文件往往没有实际用途 2.当我们需要查看谁调用谁的问题时,要用:grep命令来搜索整个项目目录,相当不方便 3.当想编译当前项目时,或者运行测试时,需要切换命令方式再手动打命令
现在好了: 有了supersearch插件,只要配置好与自己有关和目录,生成tags的事再也不用担心了(会自动生成tags文件),还能根据配置的目录进行全文搜索, 绑定快捷键后还能自己编译项目等等
全文搜索目前定义为,s
在命令模式中,s直接搜索当前单词 在视图模式中先选择要搜索的文本,再按,s
支持自定义编译(F9),测试(F8), 格式化命令(,f)
最后:
在插件文件的尾部定义了搜索快捷键,你可以自己修改为你喜欢的
2016/09/07:
1.修复搜索问题
2016/08/25:
1.修改检测tags方式. 2.默认在未配置格式化方式时,调用gg=G来格式化当前文件.
2016/01/14:
1.修改关闭vim事件检测机制,感谢 zassen
2015/12/24:
1.添加配置项目,支持编译,测试,文件过滤
2015/06/18:
1.修复当前目录只有一个文件时搜索后无法跳转问题 by Teikay 2.修复生成tags文件错乱问题 by Tian 3.搜索时过滤掉.swp文件 by Tian