Ⅰ. 插件描述
Vim plugin for Julia.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'atsushisakai/julia-vim-today-cannot-touch'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'atsushisakai/julia-vim-today-cannot-touch'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'atsushisakai/julia-vim-today-cannot-touch'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/atsushisakai/julia.vim
Ⅳ. 文档说明
# julia.vim
A vim plugin for Julia.
functions:
- Automatic docstring generation.
- Automatic code formatter.
Requirements
- vim v8.x for +job
- Julia
- JuliaFormatter.jl.
Install
- NeoBundle
NeoBundle 'AtsushiSakai/julia.vim'
Plug 'AtsushiSakai/julia.vim'
git clone https://github.com/AtsushiSakai/julia.vim.git ~/.vim/pack/plugins/start/julia.vim`
Usage
Automatic docstring generation
This fuction is for generating docsting automatically.
Docstrings for function can be generated currently.
When you are writing a function in Julia, you put cursor on the function line, and just command:
:JuliaDocstringThen, a docsting for the function will be generated. (see the upper movie).
Asynchronous automatic code format for julia code
This is an asynchronous automatic code formatter using JuliaFormatter.jl.
When you are writing Julia code, you just command:
:JuliaFmtThen, the auto formatter is running asynchronously. (it is powered by vim +job)
License
MIT
Author
Atsushi Sakai (@Atsushi_twi)