Re: [Wheat-developer] vim syntax file for Wheat
Status: Pre-Alpha
Brought to you by:
mark_lentczner
|
From: Mark L. <ma...@gl...> - 2005-04-05 02:53:34
|
On Apr 4, 2005, at 7:24 PM, Kragen Sitaker wrote: > This does a reasonable job of syntax-highlighting Wheat code in Vim. Cool > Where should things like this go inside the source repository? how about in /misc -- I'll add the SubEthaEdit mode files there too > And where on the web site? well, that is harder, since the web site doesn't yet have any real depth or organization. Before our next major release we'll need to clean that up. > > " Filetype autodetection. My .vimrc says: > " > " au BufRead,BufNewFile *.ws setf wheat > " au! Syntax wheat source $HOME/wheat.vim > " Should probably also do something along the lines of: > " if did_filetype() > " finish > " endif > " if getline(1) =~ '^wheat(version:' > " setf wheat > " endif Might want to add something like: " Wheat files all use spaces, not tabs autocmd BufRead,BufNewFile *.ws set expandtab - Mark |