vim自动显示函数原型

转载 2012年03月22日 15:08:03

先上效果图:





1.只要把鼠标停留在函数名上,就自动显示它原型;

2.在编辑时,输入函数和(后就在命令行提示函数原型,

3.详细用途请看它的说明

下载地址:

http://www.vim.org/scripts/script.php?script_id=1735

Usage:        When you type '(' after a function name                
               in insert mode, the function declaration                
               will be displayed in the command line                  
               automatically. Then you may use Alt+- and              
               Alt+= (configurable via EchoFuncKeyPrev                
               and EchoFuncKeyNext) to cycle between                  
               function declarations (if exists).                      
                                                                      
               Another feature is to provide a balloon tip            
               when the mouse cursor hovers a function name,          
               macro name, etc. This works with when                  
               +balloon_eval is compiled in.                          
                                                                      
               Because the message line often cleared by              
               some other plugins (e.g. ominicomplete), an            
               other choice is to show message in status line.        
               First, add  %{EchoFuncGetStatusLine()}  to              
               your 'statusline' option.                              
               Second, add the following line to your vimrc            
               let g:EchoFuncShowOnStatus = 1                          
               to avoid echoing function name in message line.        
                                                                      
Options:      g:EchoFuncLangsDict                                    
                 Dictionary to map the Vim file types to              
                 tags languages that should be used. You do            
                 not need to touch it in most cases.                  
                                                                      
               g:EchoFuncLangsUsed                                    
                 File types to enable echofunc, in case you            
                 do not want to use EchoFunc on all file              
                 types supported. Example:                            
                   let g:EchoFuncLangsUsed = ["java","cpp"]            
                                                                      
               g:EchoFuncMaxBalloonDeclarations                        
                 Maximum lines to display in balloon declarations.    
                                                                      
               g:EchoFuncKeyNext                                      
                 Key to echo the next function.                        
                                                                      
               g:EchoFuncKeyPrev                                      
                 Key to echo the previous function.                    
                                                                      
               g:EchoFuncShowOnStatus                                  
                 Show function name on status line. NOTE,              
                 you should manually add %{EchoFuncGetStatusLine()}    
                 to your 'statusline' option.                          
                                                                      
               g:EchoFuncAutoStartBalloonDeclaration                  
                 Automatically start balloon declaration if not 0.    
                                                                      
               g:EchoFuncPathMappingEnabled                            
               g:EchoFuncPathMapping                                  
                 The new feature added by Zhao Cai provides ability    
                 to shorten file path in some specific directory. e.g.
                 /home/username/veryveryvery/long/file/path/blabla    
                 could be showed as                                    
                 ~/veryveryvery/long/file/path/blabla                  
                 If you want to disable this feature, add              
                 let g:EchoFuncPathMappingEnabled = 0                  
                 to your vimrc. It's enabled by default.              
                 To add more mappings in g:EchoFuncPathMapping, search
                 this script and you will know how to do it.          
                                                                      
                                                                      
Thanks:       edyfox                                                  
               minux                                                  

               Zhao Cai                                               


====

http://blog.csdn.net/swust_long/article/details/7038839


相关文章推荐

vim查看函数原型跳转方法

vim 查看函数原型可以分为系统函数和自定义函数 一、系统函数:         使用shift+K会自动跳转到介绍函数原型的地方   二、自定义函数:vim 配合ctags实现函数原型快速定位  ...

自动放烟花 (对象+原型+构造函数)

自动放烟花 (对象+原型+构造函数) 烟花+原型+构造函数 *{ margin: 0; padding...

vim代码自动补全函数提示设置

vim中不能代码补全让人感觉很不爽,以下配置就是进行代码补全的,虽然功能没有windows下IDE功能强大,但是也足够用了。    需要插件为:neocomplcache,OmniCppComp...

vim显示行号、语法高亮、自动缩进的设置

在UBUNTU中vim的配置文件存放在/etc/vim目录中,配置文件名为vimrc 在Fedora中vim的配置文件存放在/etc目录中,配置文件名为vimrc 在Red Hat Linu...

设置vim语法高亮显示和自动缩进

1、配置文件的位置    在目录 /etc/ 下面,有个名为vimrc的文件,这是系统中公共的vim配置文件,对所有用户都有效。而在每个用户的主目录下,都可以自己建立私有的配置文件,命名为:“.vim...

设置vim语法高亮显示和自动缩进

1、配置文件的位置 在目录/etc/下面,有个名为vimrc的文件,这是系统中公共的vim配置文件,对所有用户都有效,而在每个用户的主目录下,都可以自己建立私有的配置文件,命名为:".vimrc...

vim显示行号、语法高亮、自动缩进的设置

在UBUNTU中vim的配置文件存放在/etc/vim目录中,配置文件名为vimrc  在Fedora中vim的配置文件存放在/etc目录中,配置文件名为vimrc 在Red Hat Linu...

vim显示行号、语法高亮、自动缩进的设置

在UBUNTU中vim的配置文件存放在/etc/vim目录中,配置文件名为vimrc  在Fedora中vim的配置文件存放在/etc目录中,配置文件名为vimrc 在Red Hat Linu...

vim显示行号、语法高亮、自动缩进的设置

在UBUNTU中vim的配置文件存放在/etc/vim目录中,配置文件名为vimrc  在Fedora中vim的配置文件存放在/etc目录中,配置文件名为vimrc 在Red Hat Linux 中...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:深度学习:神经网络中的前向传播和反向传播算法推导
举报原因:
原因补充:

(最多只允许输入30个字)