vim-arduino-ino


Ⅰ. 插件描述

Ⅱ. 基本信息

创建日期:  2013-10-25
使用用户:  95
Github星:  98
插件作者:  Jon Plaut

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/jplaut/vim-arduino-ino

Ⅳ. 文档说明

# Vim Arduino Ino

UPDATE: THIS PROJECT IS DEPRECATED

As of now, the Arduino Ino command line tool does not work with newer versions of the Arduino app. Thus, this tool will not work unless you install an older version of the Arduino app. If someone wants to contribute an update to Ino that supports newer versions of the app, they can submit a pull request to the current repo.

This script is based on Vim Arduino, but uses the
Ino command line utility instead of the Java Arduino compiler.
It therefore runs in 64-bit environments and allows for compiling and
deployment of Arduino (*.pde/*.ino) sketches directly from Vim.

Install

The plugin is structured for use with Pathogen so installation
should be easy, assuming you have Pathogen installed.

Requirements

Ano must be installed on your computer for this plugin to work (Previously, Ino was used, but that repo is no longer maintained).
To install Ano, you can install from source using the instructions here or npm install ano if you have npm installed.

If you plan on using this plugin with a board other than an Arduino
Uno, you'll need to configure Ino to use that board by following
the instructions found here.

Usage

Vim Arduino Ino can be run using the following keys:

<Leader>ac - Compile the current sketch.

<Leader>ad - Compile and deploy the current sketch.

<Leader>as - Open a serial port in screen.

In order for the build to complete successfully, your project directory will need to be set up like a normal ino project. For more information on ino project setup, see here.

Options

The default key mapping can be turned off by doing this in your .vimrc:

let g:vim_arduino_map_keys = 0

To open the serial monitor automatically after each deploy,
add this to your .vimrc:

let g:vim_arduino_auto_open_serial = 1

To change the command used to build and deploy :

let g:vim_arduino_ino_cmd = 'ano'

添加新评论