-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathREADME
More file actions
40 lines (25 loc) · 1.12 KB
/
README
File metadata and controls
40 lines (25 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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:
au 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>