Skip to content

sudar/vim-arduino-syntax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

vim-arduino-syntax

Love Arduino and Vim? Then use this syntax file and get syntax highlighting for Arduino functions in vim.

Features

  • Arduino indent and syntax highlighting
  • Support for libraries provided by the IDE
  • Support for external libraries (on request)
  • Autocompletion (using omnicomplete)

TODO

  • Create a separate branch for Arduino 1.5
  • Automatically include keywords from keywords.txt of User Arduino libraries

Installation

This plugin follows the standard runtime path structure, and as such it can be installed with a variety of plugin managers:

git clone https://github.com/sudar/vim-arduino-syntax

Remember to run :Helptags to generate help tags

NeoBundle 'vim-arduino-syntax'
Plugin 'sudar/vim-arduino-syntax'

:PluginInstall

Manual

  • Copy syntax/arduino.vim file into your ~/.vim/syntax directory
  • Copy ftdetect/arduino.vim file into your ~/.vim/ftdetect directory
  • Copy indent/arduino.vim file into your ~/.vim/indent directory

Contributing

Contributions are always welcome in the form of pull requests with explanatory comments.

Credit

The syntax file was originally created by Johannes Hoff. I regenerated the file using his python script and added some additional changes on top of it.

The most recent file was generated by z3t0

Support for indent was added by KevinSjoberg

Other tools for Arduino and Vim

If you are using Arduino with Vim, then also checkout some of my other projects.

About

Arduino syntax files for Vim

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 6