vim-hardy adds support for the Arduino language in vim. It covers syntax, compilation, and verification for Arduino code. I decided to call this plugin "vim-hardy" because "Arduino" means "hardy friend" in italian. Note that I did not write the arduino syntax file, it was generated by Johannes Hoff's script which is available at bitbucket.org/johannes/arduino-vim-syntax.
Arduino IDE version 1.5.0 and up is required for the compilation and uploading
of Arduino code. By default, vim-hardy looks for it in your PATH, but you can
specify an installation directory with g:hardy_arduino_path
.
If you don't have a preferred installation method, I recommend installing pathogen.vim, and then simply copy and paste:
mkdir -p ~/.vim/bundle
cd ~/.vim/bundle
git clone git://github.com/4Evergreen4/vim-hardy.git
Any other plugin managers should work as well, such as vundle or vim-plug.
To verify an Arduino file, run :ArduinoVerify
. To compile and upload it, use
:ArduinoUpload
.
- Johannes Hoff and contributers to vim-arduino-syntax - Created the arduino syntax file.
vim-hardy is distributed under the same license as vim itself. See :help license
.