gams


Ⅰ. 插件描述

vim syntax file for the GAMS programming language

Ⅱ. 基本信息

创建日期:  2010-06-17
使用用户:  2
Github星:  9
插件作者:  mihaly himics

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'trialsolution/gams'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'trialsolution/gams'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'trialsolution/gams'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/trialsolution/gamsvim

Ⅳ. 文档说明

SYNTAX HIGHLIGHTING AND LISTING FILE SUPPORT FOR GAMS

Syntax highlighting

syntax highlighting for the GAMS programming language

INSTALLATION

  1. put gams.vim in the syntax directory
  2. associate .gms files with the highlighting by adding the following line to your filetype.vim:
  3. BufNewFile,BufRead *.gms setf gams

GAMS listing file inspection

The main objective is to help reviewing solver output of large models
by hiding (folding) large parts of the listing file

(the script builds on Antonio Colombo's f.vim script)

:call MODLIST()
Everything is folded except variables, equation and parameters
=> you get a quick overview of the model structure and are able
to jump to the relevant positions. Then simply unfold the relevant
parts.

:cal MOREX()
You can add additional search term that will not be folded.
Example: search for a country name then single equations and variables
defined for that country remain visible

INSTALLATION

:so gamslist.vim

You can map the functions to a function key in your vimrc file:
map <F6> :call MOREX() <CR>

添加新评论