Wikia

Vim Tips Wiki

Changes: Script:2654

Edit

Back to page

(Standard format.)
(Change <tt> to <code>, perhaps also minor tweak.)
 
Line 2: Line 2:
   
 
==Fix==
 
==Fix==
As of Arduino 1.0 the file extension has changed from <tt>.pde</tt> to <tt>.ino</tt> so this line:
+
As of Arduino 1.0 the file extension has changed from <code>.pde</code> to <code>.ino</code> so this line:
 
<pre>
 
<pre>
 
autocmd! BufNewFile,BufRead *.pde setlocal ft=arduino
 
autocmd! BufNewFile,BufRead *.pde setlocal ft=arduino
 
</pre>
 
</pre>
   
should be:
+
should be:
 
<pre>
 
<pre>
 
autocmd! BufNewFile,BufRead *.ino setlocal ft=arduino
 
autocmd! BufNewFile,BufRead *.ino setlocal ft=arduino

Latest revision as of 09:46, July 14, 2012

Use this page to discuss script 2654 arduino: syntax file for Arduino .PDE files

  • Add constructive comments, bug reports, or discuss improvements (see the guideline).
  • Do not document the script here (the author should do that on vim.org).
  • This page may be out of date: check the script's vim.org page above, and its release notes.

FixEdit

As of Arduino 1.0 the file extension has changed from .pde to .ino so this line:

autocmd! BufNewFile,BufRead *.pde setlocal ft=arduino

should be:

autocmd! BufNewFile,BufRead *.ino setlocal ft=arduino

CommentsEdit

Around Wikia's network

Random Wiki