2014년 7월 14일 월요일

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