Arduino syntax file – Syntax file for Arduino .PDE files : vim online

Arduino syntax file – Syntax file for Arduino .PDE files : vim online.

This syntax file provides syntax highlighting like the Arduino IDE. That is, Arduino specific names like digitalWrite is highlighted in addition to C++ syntax. 

  1. copy arduino.vim to /plugs and /syntax folder

  2. To force C like syntax highlighting to arduino .ino files, you can add the following lines to your ~/.vimrc file:

syntax on
filetype on

au BufRead,BufNewFile *.pde set filetype=arduin
au BufNewFile,BufRead *.ino set filetype=arduino

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s