julialint.vim


Ⅰ. 插件描述

Built in Vim linter for Julia

Ⅱ. 基本信息

创建日期:  2015-06-27
使用用户:  7
Github星:  8
插件作者:  Zachary Yedidia

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'zyedidia/julialint-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'zyedidia/julialint-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'zyedidia/julialint-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/zyedidia/julialint.vim

Ⅳ. 文档说明

# Julia linter for Vim

This plugin adds linting for Julia by using the Neomake plugin and the Lint.jl Julia package.

Installation

You should be able to install it as you would any other plugin using your preferred plugin manager (e.g. Pathogen, Vundle...). You must also have the Neomake plugin installed, and the Lint.jl package in Julia.
Please make sure that you have the head version of Lint.jl (use Pkg.clone("Lint") instead of Pkg.add("Lint")).

Pathogen

$ cd ~/.vim/bundle
$ git clone https://github.com/benekastah/neomake
$ git clone https://github.com/zyedidia/julialint.vim
$ julia -e 'Pkg.clone("Lint")'

(Use .nvim if you are using Neovim)

Vundle

Add the following lines to your .vimrc (.nvimrc if using Neovim)

Plugin 'benekastah/neomake'
Plugin 'zyedidia/julialint.vim'

Then run

$ julia -e 'Pkg.clone("Lint")'

Usage

When you run :Neomake Lint.jl will be run on the current file and any errors or warnings will pop up on the side of the screen. The very first time you check for errors, give the plugin some time to start up (10 seconds maybe, it has to load lint and the functions...). If you would like to see a full list of errors and warnings, you can open the location list with :lopen (see more information with :h location-list).

If you have a project with multiple files and would like to lint the top level one and not the one being currently edited, place a file called .julialint in the top level directory, and in the first line of that file, write the name of the top level file you would like the linter to use. The linter will search in higher directories and find the .julialint file.

添加新评论