Skip to content

Commit

Permalink
Initial version of Vim plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
clonezone committed Dec 29, 2014
1 parent 21f3def commit 18e7b11
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Changes
@@ -1,3 +1,9 @@
v1.xx - 2015/01/xx

Miscellaneous:

- A rudimentary Vim plugin has been added to the repository.

v1.22.1.beta.1 - 2014/12/17

Bug fixes:
Expand Down
3 changes: 3 additions & 0 deletions support/vim/README.md
@@ -0,0 +1,3 @@
I use this via [Pathogen](https://github.com/tpope/vim-pathogen). I have a
clone of the Fig repository and symlink the `fig/support` directory into one of
the directories that I have Pathogen pull from.
1 change: 1 addition & 0 deletions support/vim/ftdetect/fig.vim
@@ -0,0 +1 @@
autocmd BufNewFile,BufRead *.fig setfiletype fig
2 changes: 2 additions & 0 deletions support/vim/ftplugin/fig.vim
@@ -0,0 +1,2 @@
setlocal commentstring=#\ %s
setlocal iskeyword+=-
23 changes: 23 additions & 0 deletions support/vim/syntax/fig.vim
@@ -0,0 +1,23 @@
syntax keyword figTodo TODO XXX FIXME NOTE

syntax keyword figKeyword
\ grammar
\ archive
\ resource
\ retrieve
\ config
\ end
\ override
\ include
\ include-file
\ command
\ add
\ append
\ path
\ set

syntax match figComment "#.*" contains=figTodos

highlight default link figTodo Todo
highlight default link figKeyword Keyword
highlight default link figComment Comment

0 comments on commit 18e7b11

Please sign in to comment.