Skip to content

Commit c8b3ef8

Browse files
committed
adding readme
1 parent b7b13ad commit c8b3ef8

File tree

1 file changed

+53
-2
lines changed

1 file changed

+53
-2
lines changed

README.md

100644100755
Lines changed: 53 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,53 @@
1-
vim-arduino-ino
2-
===============
1+
# Vim Arduino Ino
2+
3+
This script is based on [Vim Arduino][vim-arduino], but uses the
4+
[Ino][ino] command line utility instead of the Java Arduino compiler.
5+
It therefore runs in 64-bit environments and allows for compiling and
6+
deployment of Arduino (\*.pde/\*.ino) sketches directly from Vim.
7+
8+
## Install
9+
10+
The plugin is structured for use with [Pathogen][pathogen] so installation
11+
should be easy, assuming you have Pathogen installed.
12+
13+
## Requirements
14+
[Ino][ino] must be installed on your computer for this plugin to work.
15+
To install Ino, you can run ```easy_install ino``` or ```pip install ino```
16+
if you have python installed. Alternately, you can download the [source][ino-source]
17+
and run ```make install``` inside the directory.
18+
19+
If you plan on using this plugin with a board other than an Arduino
20+
Uno, you'll need to configure Ino to use that board by following
21+
the instructions found [here][ino-config].
22+
23+
## Usage
24+
Vim Arduino Ino can be run using the following keys:
25+
26+
`<Leader>ac` - Compile the current sketch.
27+
28+
`<Leader>ad` - Compile and deploy the current sketch.
29+
30+
`<Leader>as` - Open a serial port in `screen`.
31+
32+
33+
## Options
34+
The default key mapping can be turned off by doing this in your `.vimrc`:
35+
36+
```
37+
let g:vim_arduino_map_keys = 0
38+
```
39+
40+
To open the serial monitor automatically after each deploy,
41+
add this to your `.vimrc`:
42+
43+
```
44+
let g:vim_arduino_auto_open_serial = 1
45+
```
46+
47+
48+
[ino-config]: http://inotool.org/quickstart#configuration-files
49+
[ino-source]: https://pypi.python.org/pypi/ino/#downloads
50+
[pathogen]: http://www.vim.org/scripts/script.php?script_id=2332
51+
[ino]: http://inotool.org/
52+
[vim-arduino]: https://github.com/tclem/vim-arduino
53+
[arduino]: http://arduino.cc/en/Main/Software

0 commit comments

Comments
 (0)