Skip to content

Files

Latest commit

 

History

History
executable file
·
56 lines (39 loc) · 1.88 KB

README.md

File metadata and controls

executable file
·
56 lines (39 loc) · 1.88 KB

Vim Arduino Ino

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

Ino must be installed on your computer for this plugin to work. To install Ino, you can run easy_install ino or pip install ino if you have python installed. Alternately, you can download the source and run make install inside the directory.

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