[Developers] Using VIM instead of the IDE, how?

Richard Bronosky Richard at bronosky.com
Fri Jan 2 01:22:37 EST 2009


I've already made progress.  I found the Makefile in the arduino
package, corrected INSTALL_DIR for my environment, and created my own
wrapper for it like so:
echo 'make -f /Applications/arduino-0012/hardware/cores/arduino/Makefile
$*' > ~/bin/ardmake

That way I don't have to copy or symlink the Makefile.  I can just
"ardmake && ardmake upload" from the command line, or ":w | !ardmake
&& ardmake upload" in VIM.  I'm pretty satisfied so far.

Now I just hope to add the exclusive Arduino syntax to the C
highlighting I already have in vim.  I found keywords.txt (
http://code.google.com/p/arduino/source/browse/tags/0012/build/shared/lib/keywords.txt
) I think I can use that (and hardware/libraries/*/keywords.txt) to
create a vim syntax file.  I'm just not sure what the value in the 3rd
column is for.

Here is an example of a syntax that extends C (notice the source c.vim
line) http://vim.cybermirror.org/runtime/syntax/cuda.vim

Any suggestions are appreciated.

On Thu, Jan 1, 2009 at 8:04 PM, Richard Bronosky <Richard at bronosky.com> wrote:
> Well I'm a few weeks into my Arduino.  I'm learning about electronics
> and re-learning C programming that I haven't done since college.  One
> thing I haven't been able to learn is how to live without VIM.  I use
> vim from the terminal, not gvim.  If anyone could give me some
> pointers on how to verify, compile, and upload my code from the
> command line I would really appreciate it.  Once you get used to a
> modal editor it is a real pain to go back. (And then there is the
> whole "home, end, page up, and page down hell" that is the Macintosh.)
>
> --
> .!# RichardBronosky #!.
>



-- 
.!# RichardBronosky #!.



More information about the Developers mailing list