Thank you so much! I made it!
Hahaha...
Heming
On Oct 24, 6:24 pm, Israel Chauca Fuentes <[email protected]>
wrote:
> Hi there,
>
> On Oct 24, 2009, at 12:06 PM, Heming wrote:
>
> > I'm trying to use macvim as the default editor of AMPL language, which
> > has an file extension of *.mod.
> > After searching online I found a syntax file (ampl.vim) to provide
> > syntax highlight support to this *.mod file, since macvim doesn't
> > highlight any syntax for this type of file originally.
> > However, could some one give me some instructions on how to install
> > this ampl.vim script. I tried a whole bunch of approaches I found
> > online, none of them worked.
>
> I don't know what you have tried, but the steps I follow are the next:
>
> 1.- Set the filetype with something like this in your vimrc file (I
> asume all your files ending with .mod are AMPL files):
>
> au BufRead,BufNewFile *.mod set filetype=ampl
>
> 2.- Place your syntax file, ampl.vim, inside "~/.vim/syntax/" (or the
> windows equivalent).
>
> 3.- I think after that Vim will load the syntax file, but if I'm wrong
> you can add the following to your vimrc file:
>
> au! Syntax ampl source ~/.vim/syntax/ampl.vim
>
> Hope that helps,
> Israel
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_mac" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---