vim-godef

vim plugin providing godef support

  • 所有者: go-zoo/bone
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

You probably want to be using https://github.com/fatih/vim-go instead

This plugin adds godef support to vim.

The godef tool from Roger Peppe parses Go code and returns the location of
the definition of a symbol. It can be installed with

go get -v github.com/rogpeppe/godef
go install -v github.com/rogpeppe/godef

To install the vim-godef plugin, clone this vim-godef repository and (from it) copy plugin/godef.vim to ~/.vim/plugin .

Or, if you're using pathogen, on Linux:

git clone https://github.com/dgryski/vim-godef ~/.vim/bundle/vim-godef

or on Windows:

git clone https://github.com/dgryski/vim-godef %USERPROFILE%\vimfiles\bundle\vim-godef

This modules overrides the gd (go to local definition) command to open a new
window at the definition of the symbol under the cursor. Setting

g:godef_split=0

(that is, entering the command let g:godef_split=0 or inserting it into your ~/.vimrc)
will reuse the current window, and

g:godef_split=2

will open the definition in a new tab, and

g:godef_split=3

will use a vertical split instead of the default horizontal split.

If you want jumps to the same file to move your current cursor instead of splitting, use

g:godef_same_file_in_same_window=1

This also adds a :Godef which will work for global types, methods,
constants, and variables in the current package.

主要指标

概览
名称与所有者go-zoo/bone
主编程语言Go
编程语言Vim script (语言数: 3)
平台
许可证MIT License
所有者活动
创建于2014-11-19 02:16:36
推送于2019-05-06 14:37:24
最后一次提交2019-04-16 19:47:10
发布数5
最新版本名称v1.3.0 (发布于 )
第一版名称v1.0 (发布于 )
用户参与
星数1.3k
关注者数36
派生数101
提交数274
已启用问题?
问题数42
打开的问题数2
拉请求数26
打开的拉请求数1
关闭的拉请求数6
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?