Ⅰ. 插件描述
Execute python scripts in Blender without leaving VimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'mipmip/vim-run-in-blender'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'mipmip/vim-run-in-blender'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'mipmip/vim-run-in-blender'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/mipmip/vim-run-in-blender
Ⅳ. 文档说明
# vim-run-in-blender
If you use Python and pby in Blender to develop addon's and like to use Vim as
script editor.
Requirements
You need Blender of course. https://www.blender.org
In Blender install the add-on bpy_externall, activate it and start the listener
See https://github.com/zeffii/bpy_externall. You might want to use a blender bootstrap script
For now you need a posix machine e.g. OSX or Linux.
Installation
See https://github.com/zeffii/bpy_externall for instructions how to
install bpy_externall.
Use your plugin manager of choice.
git clone https://github.com/mipmip/vim-run-in-blender ~/.vim/bundle/vim-run-in-blender
- Add
Bundle 'https://github.com/mipmip/vim-run-in-blender'to .vimrc - Run
:BundleInstall
- Add
- Add
NeoBundle 'https://github.com/mipmip/vim-run-in-blender'to .vimrc - Run
:NeoBundleInstall
- Add
- Add
Plug 'https://github.com/mipmip/vim-run-in-blender'to .vimrc - Run
:PlugInstall
- Add
Usage
Map the functions below.
:RunInBlender to run the complete buffer contents in Blender.
:'<,'>RunSelectionInBlender to run the current visual selection
TODO
- testing
- improve output