Ⅰ. 插件描述
:mag: :bug: :paw_prints: Stacktrace of Vim scriptⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'haya14busa/vim-stacktrace'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'haya14busa/vim-stacktrace'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'haya14busa/vim-stacktrace'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/haya14busa/vim-stacktrace
Ⅳ. 文档说明
## vim-stacktrace - Stacktrace of Vim script

Illust credit: いらすとや / tenntenn/gopher-stickers
vim-stacktrace provides a way to get a callstack or build stacktrace by error information (e.g. v:throwpoint, error message).
You can create quickfix list or location list from the result.
vim-stacktrace helps you to debug Vim script :bug: and to report a helpful error report to issue tracker of Vim plugins :two_hearts:
:mag: :bug: Demo :CStacktraceFromhist
:CStacktraceFromhist sets selected error stacktrace to quickfix list from message history.

:paw_prints: Demo stacktrace#callstack()
stacktrace#callstack() returns current callstack.

Requirements
- Vim 8.0 or above
- "go" command in $PATH
Installation
call dein#add('haya14busa/vim-stacktrace', {'build': 'make'})Plug 'haya14busa/vim-stacktrace', { 'do': 'make' }Proof of Concept: Writing Vim plugin in Go lang for Vim 8.0
vim-stacktrace demonstrates a feasibility to write Vim plugin in Go lang for Vim 8.0.
Libraries which helps me to write vim-stacktrace in Go lang.
- haya14busa/vim-go-client for communicating with Vim
- haya14busa/go-vimlparser for creating rich stacktrace by parsing Vim script without any noticeable delay
:bird: Author
haya14busa (https://github.com/haya14busa)