The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
May 17th, 2024, 10:16pm
Pages: 1
Send Topic Print
OCEAN vim syntax (Read 2607 times)
Visjnoe
Senior Member
****
Offline



Posts: 233

OCEAN vim syntax
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
Back to top
 
 
View Profile   IP Logged
Andrew Beckett
Senior Fellow
******
Offline

Life, don't talk to
me about Life...

Posts: 1742
Bracknell, UK
Re: OCEAN vim syntax
Reply #1 - 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.
Back to top
 
 
View Profile WWW   IP Logged
jbdavid
Community Fellow
*****
Offline



Posts: 378
Silicon Valley
Re: OCEAN vim syntax
Reply #2 - Feb 1st, 2007, 2:11am
 
I have a .pats file for SKILL that works for OCEAN - but thats for Nedit editor..
Back to top
 
 

jbdavid
Mixed Signal Design Verification
View Profile WWW   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.