Source Explorer is a Vim plugin that works as a source code explorer based on tag works like the context window in Source Insight.
The plugin (srcexpl.vim) is a source code explorer based on tag and it provides an overview of the function and type definitions.It has such a mechannism that works like the context window component of "Source Insight" software.
If you have used Source Insight for browseing C/C++/Java project before, you may find that you can browse the definitions with the Source Explorer as well as the context window of "Source Insight".
For example, you put the cursor on a function name in the Normal mode, its definition will show on the Source Explorer window a moment later. As soon as you do the 'double-click' operation using your mouse onto the Source Explorer window which had appeared on the bottom of (G)Vim, the definition and its context will be shown on the editor window.(Just like Source Insight does). Besides, multi-definitions' listing and jumping works like the Source Insight too. In srcexpl v1.2 and above, the function key which users mapped will play a important role that you can not only use mouse but also use keyboard in order to exploring source code in both GUI and cterm VIM.
The Source Explorer can work with Taglist and MiniBufExpl very well. Both of them make (G)Vim looks like the "Source Insight" in Unix/Windows/Mac environment.
Vim is a text editor first released by Bram Moolenaar in 1991 for the Amiga computer. Vim was created as an extended version of the vi editor, with many additional features designed to be helpful in editing program source code; its full name is Vi IMproved.
While Vim is cross-platform, it is most popular on Unix-like operating systems.
Released under a software license compatible with the GNU General Public License, Vim is free and open source software. The program's license includes some charityware clauses.
Like vi, Vim's interface is based not on menus or icons but on commands given in a text user interface; its GUI mode, gVim, adds menus and toolbars for commonly used commands but the full functionality is still expressed through its command line mode.
For many users learning Vim may be slow initially, but once the basics are understood they progress quickly. To facilitate this, Vim has a built-in tutorial for beginners. There is also the Vim Users' Manual that details the basic and more advanced Vim features. This manual can be read from within Vim, or found online.
Vim also has a built-in help facility (using the :help command) that allows users to query and navigate through commands and features.
Add the srcexpl.vim script to the plugin directory of Vim, such as ~/.vim/plugin/
2 Add the following in your .vimrc and change the settings by yourself:
" / / Set 300 ms for refreshing the Source Explorer
let g:SrcExpl_refreshTime = 300
" / / Set the window height of Source Explorer
let g:SrcExpl_winHeight = 9
" / / Let the Source Explorer update the tags file when opening
let g:SrcExpl_updateTags = 1
" / / Set "Space" key for refresh the Source Explorer manually
let g:SrcExpl_refreshKey = ""
" / / Set "Ctrl-b" key for back from the definition context
let g:SrcExpl_gobackKey = ""
" / / The switch of the Source Explorer
What's New in This Release:
· added a prompt line which contain the tag name and its counts when we do the multi-definition searching.
· A bug about folding in VIM is fixed.
· In srcexpl.vim, the developer described how the Source Explorer works with the Taglist and the MiniBufExplorer on his platform.