option to the highlighting of and, or, and not. In
PostScript the function of these operators depends on the types of their
operands - if the operands are booleans then they are the logical operators,
if they are integers then they are binary operators. As binary and logical
operators can be highlighted differently they have to be highlighted one way
or the other. By default they are treated as logical operators. They can be
highlighted as binary operators by defining the variable
postscr_andornot_binary as follows: >
:let postscr_andornot_binary=1
<
*ptcap.vim* *ft-printcap-syntax*
PRINTCAP + TERMCAP *ft-ptcap-syntax* *ft-termcap-syntax*
This syntax file applies to the printcap and termcap databases.
In order for Vim to recognize printcap/termcap files that do not match
the patterns "*printcap*", or "*termcap*", you must put additional patterns
appropriate to your system in your |myfiletypefile| file. For these
patterns, you must set the variable "b:ptcap_type" to either "print" or
"term", and then the 'filetype' option to ptcap.
For example, to make Vim identify all files in /etc/termcaps/ as termcap
files, add the following: >
:au BufNewFile,BufRead /etc/termcaps/* let b:ptcap_type = "term" |
\ set filetype=ptcap
If you notice highlighting errors while scrolling backwards, which
are fixed when redrawing with CTRL-L, try setting the "ptcap_minlines"
internal variable to a larger number: >
:let ptcap_minlines = 50
(The default is 20 lines.)
PROGRESS *progress.vim* *ft-progress-syntax*
Files matching "*.w" could be Progress or cweb. If the automatic detection
doesn't work for you, or you don't edit cweb at all, use this in your
startup vimrc: >
:let filetype_w = "progress"
The same happens for "*.i", which could be assembly, and "*.p", which could be
Pascal. Use this if you don't use assembly and Pascal: >
:let filetype_i = "progress"
:let filetype_p = "progress"
PYTHON *python.vim* *ft-python-syntax*
There are six options to control Python syntax highlighting.
For highlighted numbers: >
:let python_no_number_highlight = 1
For highlighted builtin functions: >
:let python_no_builtin_highlight = 1
For highlighted standard exceptions: >
:let python_no_exception_highlight = 1
For highlighted doctests and code inside: >
:let python_no_doctest_highlight = 1
or >
:let python_no_doctest_code_highlight = 1
The first option implies the second one.
For highlighted trailing whitespace and mix of spaces and tabs: >
:let python_space_error_highlight = 1
If you want all possible Python highlighting: >
:let python_highlight_all = 1
This has the same effect as setting python_space_error_highlight and
unsetting all the other ones.
If you use Python 2 or straddling code (Python 2 and 3 compatible),
you can enforce the use of an older syntax file with support for
Python 2 and up to Python 3.5. >
:let python_use_python2_syntax = 1
This option will exclude all modern Python 3.6 or higher features.
Note: Only existence of these options matters, not their value.
You can replace 1 above with anything.
QUAKE *quake.vim* *ft-quake-syntax*
The Quake syntax definition should work for most FPS (First Person Shooter)
based on one of the Quake engines. However, the command names vary a bit
between the three games (Quake, Quake 2, and Quake 3 Arena) so the syntax
definition checks for the existence of three global variables to allow users
to specify what commands are legal in their files. The three variables can
be set for the following effects:
set to highlight commands only available in Quake: >
:let quake_is_quake1 = 1
set to highlight commands only available in Quake 2: >
:let quake_is_quake2 = 1
set to highlight commands only available in Quake 3 Arena: >
:let quake_is_quake3 = 1
Any combination of these three variables is legal, but might highlight more
commands than are actually available to you by the game.
R *r.vim* *ft-r-syntax*
The parsing of