This syntax file provides syntax highlighting like the Arduino IDE. That is, Arduino specific names like digitalWrite is highlighted in addition to C++ syntax.
- copy arduino.vim to /plugs and /syntax folder
To force C like syntax highlighting to arduino .ino files, you can add the following lines to your
~/.vimrc
file:
syntax on
filetype onau BufRead,BufNewFile *.pde set filetype=arduin
au BufNewFile,BufRead *.ino set filetype=arduino
댓글 없음:
댓글 쓰기