neomake-platformio


Ⅰ. 插件描述

Simple tool allowing Neomake to properly lint when you're using PlatformIO.

Ⅱ. 基本信息

创建日期:  2016-12-03
使用用户:  3
Github星:  20
插件作者:  Adam Coddington

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/coddingtonbear/neomake-platformio

Ⅳ. 文档说明

Neomake-Platformio

Easily configure neomake to recognize your PlatformIO project's include
path.

Installation

  1. Install using your favorite Vim plugin manager.
  2. Run UpdateRemotePlugins.
  3. Restart Neovim.

Basic Use

call SetupPlatformioEnvironment('/path/to/your/platformio/project/')

Use with Local-vimrc

If you use vim-localvimrc you
can automatically configure vim when you open a file in a project directory
by doing two things:

  1. Adding an .lvimrc file containing the following line in the same
    level of your project that includes your platformio.ini file :
call SetupPlatformioEnvironment(expand('<sfile>:p'))
  1. Disabling lvimrc sandboxing by setting the following setting in your
    ~/.config/nvim/init.vim:
let g:localvimrc_sandbox = 0

Note that if you work on third-party projects, any code in those projects'
.lvimrc files include could be executed outside the sandbox; if you
disable the sandbox as described above, be sure to carefully examine the
contents of unfamiliar paths when localvimrc asks you whether you'd like
to source a new localvimrc configuration file!

添加新评论