sponsor Vim development Vim logo Vim Book Ad

Arduino syntax file : Syntax file for Arduino .PDE files

 script karma  Rating 41/17, Downloaded by 918  Comments, bugs, improvements  Vim wiki

created by
Johannes Hoff
 
script type
syntax
 
description
This syntax file provides syntax highlighting like the Arduino IDE. That is, Arduino specific names like digitalWrite is highlighted in addition to C++ syntax.

I've bascially just implemented Richard Bronosky's idea from the arduino mailing list: http://arduino.cc/pipermail/developers_arduino.cc/2009-January/000398.html
 
install details
Just put the file in your vimfiles/syntax folder. To automatically use it on PDE files, add the following line to your vimrc file (or e.g filetype.vim to install it for all users) :

au BufNewFile,BufRead *.pde setf arduino
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
arduino.vim 3 2010-05-12 6.0 Johannes Hoff Change to unix line endings as in version 1 (thanks Erik Nomitch)
arduino.vim 2 2010-04-05 6.0 Johannes Hoff Cleaning up and adding new keywords (thanks to Rik)
arduino.vim 1 2009-05-24 6.0 Johannes Hoff Initial upload

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
SourceForge.net Logo