The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Simulators >> Circuit Simulators >> OCEAN vim syntax
https://designers-guide.org/forum/YaBB.pl?num=1170097524

Message started by Visjnoe on Jan 29th, 2007, 11:05am

Title: OCEAN vim syntax
Post by Visjnoe on Jan 29th, 2007, 11:05am


Dear all,

does anyone have a VIM syntax file for OCEAN scripts?
A quick Google search did not provide anything...

Kind Regards

Peter

Title: Re: OCEAN vim syntax
Post by Andrew Beckett on Jan 29th, 2007, 2:34pm

Simplest thing to do is to create a directory ~/.vim and create a file within that called filetype.vim with the following contents:


Code:
" my filetype file
if exists("did_load_filetypes")
 finish
endif
augroup filetypedetect
 au! BufRead,BufNewFile *.ocn  setfiletype skill
 au! BufRead,BufNewFile *.ils  setfiletype skill
augroup END


This will tell it to treat files with the suffix .ocn as SKILL code (which is what OCEAN is).

Regards,

Andrew.

Title: Re: OCEAN vim syntax
Post by jbdavid on Feb 1st, 2007, 2:11am

I have a .pats file for SKILL that works for OCEAN - but thats for Nedit editor..

The Designer's Guide Community Forum » Powered by YaBB 2.2.2!
YaBB © 2000-2008. All Rights Reserved.