Skip to content

Vim syntax file for the Pebble Smartwatch SDK3

Notifications You must be signed in to change notification settings

andrwj/pebble-vim-syntax

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 

Repository files navigation

Vim Syntax for Pebble Smartwatch API

This is a Vim syntax file for the Pebble Smartwatch SDK 3.0 API.

This adds syntax keywords for all the Pebble types, constants, and functions.

Installing

If you're using Pathogen, clone this repository into ~/.vim/bundle/pebble-syntax to install.

If you're using Vundle, add Plugin "andrwj/pebble-vim-syntax" into your ~/.vimrc and execute :PluginInstall command to install.

If not, just drop syntax/pebble.vim into your ~/.vim/syntax/ directory.

Getting This to Work

Because Pebble uses regular *.c and *.h files, you will have to tell Vim to load pebble.vim instead of the standard c.vim. I did this by putting all my Pebble projects in the same parent directory and added this autocmd to my ~/.vimrc:

autocmd BufNewFile,BufRead ~/pebble-dev/*.{c,h} set syntax=pebble

Alter the path to taste, of course.

You can also use a modeline like /* vim: set syntax=pebble: */ if you're into that.

About

Vim syntax file for the Pebble Smartwatch SDK3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 100.0%