您的位置:首页 > 其它

SrcExpl 插件实现自动显示跳转函数及变量定义功能

2014-11-15 17:51 726 查看
在.vim/bundle目录下,执行

git clone https://github.com/wesleyche/SrcExpl.git
并在.vimrc中添加

""""""""""""""""""""for SourceExplorer plugin""""""""""""""""""""""""".

"{

" // The switch of the Source Explorer

nmap se :SrcExplToggle<CR>

" // Set the height of Source Explorer window

let g:SrcExpl_winHeight = 6

" // Set 100 ms for refreshing the Source Explorer

let g:SrcExpl_refreshTime = 100

" // Set "Enter" key to jump into the exact definition context

let g:SrcExpl_jumpKey = "<ENTER>"

" // Set "Space" key for back from the definition context

let g:SrcExpl_gobackKey = "<SPACE>"

" // In order to avoid conflicts, the Source Explorer should know what plugins

" // except itself are using buffers. And you need add their buffer names into

" // below listaccording to the command ":buffers!"

"let g:SrcExpl_pluginList = [

" \ "__Tag_List__",

" \ "_NERD_tree_"

" \ ]

" // Enable/Disable the local definition searching, and note that this is not

" // guaranteed to work, the Source Explorer doesn't check the syntax for now.

" // It only searches for a match with the keyword according to command 'gd'

let g:SrcExpl_searchLocalDef = 1

" // Do not let the Source Explorer update the tags file when opening

let g:SrcExpl_isUpdateTags = 0

" // Use 'Exuberant Ctags' with '--sort=foldcase -R .' or '-L cscope.files' to

" // create/update the tags file

let g:SrcExpl_updateTagsCmd = "ctags --sort=foldcase -R ."

" // Set "<F12>" key for updating the tags file artificially

let g:SrcExpl_updateTagsKey = "<F12>"

" // Set "<F10>" key for displaying the previous definition in the jump list

let g:SrcExpl_prevDefKey = "<F10>"

" // Set "<F11>" key for displaying the next definition in the jump list

let g:SrcExpl_nextDefKey = "<F11>"

"}

""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐