vim arduino syntax

this is a quick one. after realizing that my ino files did not have proper syntax in vim, i did some googling and found this.

but it needed a little more to make it work with my setup.

so i added:
autocmd BufNewFile,BufReadPost *.ino,*.pde set filetype=arduino
into ~/.vim/ftdetect/arduino.vim — this vim file is not the syntax file but an empty file under ftdetect.


The following two tabs change content below.

charlie root

VP of keeping it real / HNIC at pissedoffadmins.com
I bring the cold coffee.

Latest posts by charlie root (see all)

No Comment.

Add Your Comment