Runtime file updates. Fix tar plugin window split.
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
" tar.vim: Handles browsing tarfiles
|
" tar.vim: Handles browsing tarfiles
|
||||||
" AUTOLOAD PORTION
|
" AUTOLOAD PORTION
|
||||||
" Date: Jul 27, 2010
|
" Date: Aug 09, 2010
|
||||||
" Version: 25
|
" Version: 26
|
||||||
" Maintainer: Charles E Campbell, Jr <NdrOchip@ScampbellPfamily.AbizM-NOSPAM>
|
" Maintainer: Charles E Campbell, Jr <NdrOchip@ScampbellPfamily.AbizM-NOSPAM>
|
||||||
" License: Vim License (see vim's :help license)
|
" License: Vim License (see vim's :help license)
|
||||||
"
|
"
|
||||||
@ -22,7 +22,7 @@
|
|||||||
if &cp || exists("g:loaded_tar")
|
if &cp || exists("g:loaded_tar")
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
let g:loaded_tar= "v25"
|
let g:loaded_tar= "v26"
|
||||||
if v:version < 702
|
if v:version < 702
|
||||||
echohl WarningMsg
|
echohl WarningMsg
|
||||||
echo "***warning*** this version of tar needs vim 7.2"
|
echo "***warning*** this version of tar needs vim 7.2"
|
||||||
@ -127,7 +127,7 @@ fun! tar#Browse(tarfile)
|
|||||||
if &ma != 1
|
if &ma != 1
|
||||||
set ma
|
set ma
|
||||||
endif
|
endif
|
||||||
let w:tarfile= a:tarfile
|
let b:tarfile= a:tarfile
|
||||||
|
|
||||||
setlocal noswapfile
|
setlocal noswapfile
|
||||||
setlocal buftype=nofile
|
setlocal buftype=nofile
|
||||||
@ -198,13 +198,13 @@ fun! tar#Browse(tarfile)
|
|||||||
noremap <silent> <buffer> <cr> :call <SID>TarBrowseSelect()<cr>
|
noremap <silent> <buffer> <cr> :call <SID>TarBrowseSelect()<cr>
|
||||||
|
|
||||||
let &report= repkeep
|
let &report= repkeep
|
||||||
" call Dret("tar#Browse : w:tarfile<".w:tarfile.">")
|
" call Dret("tar#Browse : b:tarfile<".b:tarfile.">")
|
||||||
endfun
|
endfun
|
||||||
|
|
||||||
" ---------------------------------------------------------------------
|
" ---------------------------------------------------------------------
|
||||||
" TarBrowseSelect: {{{2
|
" TarBrowseSelect: {{{2
|
||||||
fun! s:TarBrowseSelect()
|
fun! s:TarBrowseSelect()
|
||||||
" call Dfunc("TarBrowseSelect() w:tarfile<".w:tarfile."> curfile<".expand("%").">")
|
" call Dfunc("TarBrowseSelect() b:tarfile<".b:tarfile."> curfile<".expand("%").">")
|
||||||
let repkeep= &report
|
let repkeep= &report
|
||||||
set report=10
|
set report=10
|
||||||
let fname= getline(".")
|
let fname= getline(".")
|
||||||
@ -224,8 +224,8 @@ fun! s:TarBrowseSelect()
|
|||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" about to make a new window, need to use w:tarfile
|
" about to make a new window, need to use b:tarfile
|
||||||
let tarfile= w:tarfile
|
let tarfile= b:tarfile
|
||||||
let curfile= expand("%")
|
let curfile= expand("%")
|
||||||
if has("win32") && executable("cygpath")
|
if has("win32") && executable("cygpath")
|
||||||
" assuming cygwin
|
" assuming cygwin
|
||||||
@ -313,7 +313,7 @@ fun! tar#Read(fname,mode)
|
|||||||
setlocal ro
|
setlocal ro
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let w:tarfile= a:fname
|
let b:tarfile= a:fname
|
||||||
exe "file tarfile::".fnameescape(fname)
|
exe "file tarfile::".fnameescape(fname)
|
||||||
|
|
||||||
" cleanup
|
" cleanup
|
||||||
@ -321,13 +321,13 @@ fun! tar#Read(fname,mode)
|
|||||||
set nomod
|
set nomod
|
||||||
|
|
||||||
let &report= repkeep
|
let &report= repkeep
|
||||||
" call Dret("tar#Read : w:tarfile<".w:tarfile.">")
|
" call Dret("tar#Read : b:tarfile<".b:tarfile.">")
|
||||||
endfun
|
endfun
|
||||||
|
|
||||||
" ---------------------------------------------------------------------
|
" ---------------------------------------------------------------------
|
||||||
" tar#Write: {{{2
|
" tar#Write: {{{2
|
||||||
fun! tar#Write(fname)
|
fun! tar#Write(fname)
|
||||||
" call Dfunc("tar#Write(fname<".a:fname.">) w:tarfile<".w:tarfile."> tblfile_".winnr()."<".s:tblfile_{winnr()}.">")
|
" call Dfunc("tar#Write(fname<".a:fname.">) b:tarfile<".b:tarfile."> tblfile_".winnr()."<".s:tblfile_{winnr()}.">")
|
||||||
let repkeep= &report
|
let repkeep= &report
|
||||||
set report=10
|
set report=10
|
||||||
|
|
||||||
@ -383,8 +383,8 @@ fun! tar#Write(fname)
|
|||||||
cd _ZIPVIM_
|
cd _ZIPVIM_
|
||||||
" call Decho("current directory now: ".getcwd())
|
" call Decho("current directory now: ".getcwd())
|
||||||
|
|
||||||
let tarfile = substitute(w:tarfile,'tarfile:\(.\{-}\)::.*$','\1','')
|
let tarfile = substitute(b:tarfile,'tarfile:\(.\{-}\)::.*$','\1','')
|
||||||
let fname = substitute(w:tarfile,'tarfile:.\{-}::\(.*\)$','\1','')
|
let fname = substitute(b:tarfile,'tarfile:.\{-}::\(.*\)$','\1','')
|
||||||
|
|
||||||
" handle compressed archives
|
" handle compressed archives
|
||||||
if tarfile =~# '\.bz2'
|
if tarfile =~# '\.bz2'
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
*message.txt* For Vim version 7.3f. Last change: 2010 Jul 26
|
*message.txt* For Vim version 7.3f. Last change: 2010 Aug 10
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -547,7 +547,7 @@ Vim (and Vi) expect tags files to be sorted in ASCII order. Binary searching
|
|||||||
can then be used, which is a lot faster than a linear search. If your tags
|
can then be used, which is a lot faster than a linear search. If your tags
|
||||||
files are not properly sorted, reset the |'tagbsearch'| option.
|
files are not properly sorted, reset the |'tagbsearch'| option.
|
||||||
This message is only given when Vim detects a problem when searching for a
|
This message is only given when Vim detects a problem when searching for a
|
||||||
tag. Sometimes this message is not given, even thought the tags file is not
|
tag. Sometimes this message is not given, even though the tags file is not
|
||||||
properly sorted.
|
properly sorted.
|
||||||
|
|
||||||
*E460* >
|
*E460* >
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
*pi_tar.txt* For Vim version 7.3f. Last change: 2010 Jul 27
|
*pi_tar.txt* For Vim version 7.3f. Last change: 2010 Aug 09
|
||||||
|
|
||||||
+====================+
|
+====================+
|
||||||
| Tar File Interface |
|
| Tar File Interface |
|
||||||
@ -83,6 +83,8 @@ Copyright 2005-2010: The GPL (gnu public license) applies to *tar-copyright*
|
|||||||
4. History *tar-history*
|
4. History *tar-history*
|
||||||
|
|
||||||
|
|
||||||
|
v26 Aug 09, 2010 * uses buffer-local instead of window variables to hold
|
||||||
|
tarfile name
|
||||||
v25 Jun 19, 2010 * (Jan Steffens) added support for xz compression
|
v25 Jun 19, 2010 * (Jan Steffens) added support for xz compression
|
||||||
v24 Apr 07, 2009 * :Untarvim command implemented
|
v24 Apr 07, 2009 * :Untarvim command implemented
|
||||||
Sep 28, 2009 * Added lzma support
|
Sep 28, 2009 * Added lzma support
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
*syntax.txt* For Vim version 7.3f. Last change: 2010 Aug 08
|
*syntax.txt* For Vim version 7.3f. Last change: 2010 Aug 10
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -2613,7 +2613,7 @@ redrawing can become slow.
|
|||||||
TEX *tex.vim* *ft-tex-syntax*
|
TEX *tex.vim* *ft-tex-syntax*
|
||||||
|
|
||||||
*tex-folding*
|
*tex-folding*
|
||||||
Want Syntax Folding? ~
|
Tex: Want Syntax Folding? ~
|
||||||
|
|
||||||
As of version 28 of <syntax/tex.vim>, syntax-based folding of parts, chapters,
|
As of version 28 of <syntax/tex.vim>, syntax-based folding of parts, chapters,
|
||||||
sections, subsections, etc are supported. Put >
|
sections, subsections, etc are supported. Put >
|
||||||
@ -2623,7 +2623,7 @@ modeline at the end of your LaTeX file: >
|
|||||||
% vim: fdm=syntax
|
% vim: fdm=syntax
|
||||||
<
|
<
|
||||||
*tex-nospell*
|
*tex-nospell*
|
||||||
Don't Want Spell Checking In Comments? ~
|
Tex: Don't Want Spell Checking In Comments? ~
|
||||||
|
|
||||||
Some folks like to include things like source code in comments and so would
|
Some folks like to include things like source code in comments and so would
|
||||||
prefer that spell checking be disabled in comments in LaTeX files. To do
|
prefer that spell checking be disabled in comments in LaTeX files. To do
|
||||||
@ -2631,15 +2631,15 @@ this, put the following in your <.vimrc>: >
|
|||||||
let g:tex_comment_nospell= 1
|
let g:tex_comment_nospell= 1
|
||||||
<
|
<
|
||||||
*tex-verb*
|
*tex-verb*
|
||||||
Want Spell Checking in Verbatim Zones?~
|
Tex: Want Spell Checking in Verbatim Zones?~
|
||||||
|
|
||||||
Often verbatim regions are used for things like source code; seldom does
|
Often verbatim regions are used for things like source code; seldom does
|
||||||
one want source code spell-checked. However, for those of you who do
|
one want source code spell-checked. However, for those of you who do
|
||||||
want your verbatim zones spell-checked, put the following in your <.vimrc>: >
|
want your verbatim zones spell-checked, put the following in your <.vimrc>: >
|
||||||
let g:tex_verbspell= 1
|
let g:tex_verbspell= 1
|
||||||
|
<
|
||||||
*tex-runon*
|
*tex-runon*
|
||||||
Run-on Comments/Math? ~
|
Tex: Run-on Comments or MathZones ~
|
||||||
|
|
||||||
The <syntax/tex.vim> highlighting supports TeX, LaTeX, and some AmsTeX. The
|
The <syntax/tex.vim> highlighting supports TeX, LaTeX, and some AmsTeX. The
|
||||||
highlighting supports three primary zones/regions: normal, texZone, and
|
highlighting supports three primary zones/regions: normal, texZone, and
|
||||||
@ -2652,7 +2652,7 @@ which will forcibly terminate the highlighting of either a texZone or a
|
|||||||
texMathZone.
|
texMathZone.
|
||||||
|
|
||||||
*tex-slow*
|
*tex-slow*
|
||||||
Slow Syntax Highlighting? ~
|
Tex: Slow Syntax Highlighting? ~
|
||||||
|
|
||||||
If you have a slow computer, you may wish to reduce the values for >
|
If you have a slow computer, you may wish to reduce the values for >
|
||||||
:syn sync maxlines=200
|
:syn sync maxlines=200
|
||||||
@ -2662,7 +2662,7 @@ increase them. This primarily affects synchronizing (i.e. just what group,
|
|||||||
if any, is the text at the top of the screen supposed to be in?).
|
if any, is the text at the top of the screen supposed to be in?).
|
||||||
|
|
||||||
*tex-morecommands* *tex-package*
|
*tex-morecommands* *tex-package*
|
||||||
Want To Highlight More Commands? ~
|
Tex: Want To Highlight More Commands? ~
|
||||||
|
|
||||||
LaTeX is a programmable language, and so there are thousands of packages full
|
LaTeX is a programmable language, and so there are thousands of packages full
|
||||||
of specialized LaTeX commands, syntax, and fonts. If you're using such a
|
of specialized LaTeX commands, syntax, and fonts. If you're using such a
|
||||||
@ -2672,7 +2672,7 @@ techniques in |mysyntaxfile-add| to extend or modify the highlighting provided
|
|||||||
by syntax/tex.vim.
|
by syntax/tex.vim.
|
||||||
|
|
||||||
*tex-error*
|
*tex-error*
|
||||||
Excessive Error Highlighting? ~
|
Tex: Excessive Error Highlighting? ~
|
||||||
|
|
||||||
The <tex.vim> supports lexical error checking of various sorts. Thus,
|
The <tex.vim> supports lexical error checking of various sorts. Thus,
|
||||||
although the error checking is ofttimes very useful, it can indicate
|
although the error checking is ofttimes very useful, it can indicate
|
||||||
@ -2682,7 +2682,7 @@ you may put in your <.vimrc> the following statement: >
|
|||||||
and all error checking by <syntax/tex.vim> will be suppressed.
|
and all error checking by <syntax/tex.vim> will be suppressed.
|
||||||
|
|
||||||
*tex-math*
|
*tex-math*
|
||||||
Need a new Math Group? ~
|
Tex: Need a new Math Group? ~
|
||||||
|
|
||||||
If you want to include a new math group in your LaTeX, the following
|
If you want to include a new math group in your LaTeX, the following
|
||||||
code shows you an example as to how you might do so: >
|
code shows you an example as to how you might do so: >
|
||||||
@ -2697,7 +2697,7 @@ The "starform" variable, if true, implies that your new math group
|
|||||||
has a starred form (ie. eqnarray*).
|
has a starred form (ie. eqnarray*).
|
||||||
|
|
||||||
*tex-style*
|
*tex-style*
|
||||||
Starting a New Style? ~
|
Tex: Starting a New Style? ~
|
||||||
|
|
||||||
One may use "\makeatletter" in *.tex files, thereby making the use of "@" in
|
One may use "\makeatletter" in *.tex files, thereby making the use of "@" in
|
||||||
commands available. However, since the *.tex file doesn't have one of the
|
commands available. However, since the *.tex file doesn't have one of the
|
||||||
@ -2711,7 +2711,7 @@ Putting "let g:tex_stylish=1" into your <.vimrc> will make <syntax/tex.vim>
|
|||||||
always accept such use of @.
|
always accept such use of @.
|
||||||
|
|
||||||
*tex-cchar* *tex-cole* *tex-conceal*
|
*tex-cchar* *tex-cole* *tex-conceal*
|
||||||
Taking Advantage of Conceal Mode~
|
Tex: Taking Advantage of Conceal Mode~
|
||||||
|
|
||||||
If you have |'conceallevel'| set to 2 and if your encoding is utf-8, then a
|
If you have |'conceallevel'| set to 2 and if your encoding is utf-8, then a
|
||||||
number of character sequences can be translated into appropriate utf-8 glyphs,
|
number of character sequences can be translated into appropriate utf-8 glyphs,
|
||||||
@ -2723,6 +2723,22 @@ In fact, only a few characters are supported as subscripts.
|
|||||||
One way to use this is to have vertically split windows (see |CTRL-W_v|); one
|
One way to use this is to have vertically split windows (see |CTRL-W_v|); one
|
||||||
with |'conceallevel'| at 0 and the other at 2; and both using |'scrollbind'|.
|
with |'conceallevel'| at 0 and the other at 2; and both using |'scrollbind'|.
|
||||||
|
|
||||||
|
*g:tex_conceal*
|
||||||
|
Tex: Selective Conceal Mode~
|
||||||
|
|
||||||
|
You may selectively use conceal mode by setting g:tex_conceal in your
|
||||||
|
<.vimrc>. By default it is set to "admgs" to enable conceal for the
|
||||||
|
following sets of characters: >
|
||||||
|
|
||||||
|
a = accents/ligatures
|
||||||
|
d = delimiters
|
||||||
|
m = math symbols
|
||||||
|
g = Greek
|
||||||
|
s = superscripts/subscripts
|
||||||
|
<
|
||||||
|
By leaving one or more of these out, the associated conceal-character
|
||||||
|
substitution will not be made.
|
||||||
|
|
||||||
|
|
||||||
TF *tf.vim* *ft-tf-syntax*
|
TF *tf.vim* *ft-tf-syntax*
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
*todo.txt* For Vim version 7.3f. Last change: 2010 Aug 09
|
*todo.txt* For Vim version 7.3f. Last change: 2010 Aug 10
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -32,11 +32,14 @@ be worked on, but only if you sponsor Vim development. See |sponsor|.
|
|||||||
|
|
||||||
'cursorline' stops too early in a help file, caused by conceal feature.
|
'cursorline' stops too early in a help file, caused by conceal feature.
|
||||||
|
|
||||||
|
Test 73 fails on MS-Windows when compiled with DJGPP.
|
||||||
|
:find completion with 'path' set to "./**" results in full path for
|
||||||
|
"./subdir/file", should shorten to start with "./".
|
||||||
|
|
||||||
Before release 7.3:
|
Before release 7.3:
|
||||||
- Rename vim73 branch to default (hints: Xavier de Gaye, 2010 May 23)
|
- Rename vim73 branch to default (hints: Xavier de Gaye, 2010 May 23)
|
||||||
|
|
||||||
Test 73 fails on MS-Windows when compiled with DJGPP.
|
Problem with \NL in Ex script. (Ray Frish, 2010 Aug 10)
|
||||||
Possibly change WIN3264 to MSWIN || MSDOS.
|
|
||||||
|
|
||||||
Bug: E685 error for func_unref(). (ZyX, 2010 Aug 5)
|
Bug: E685 error for func_unref(). (ZyX, 2010 Aug 5)
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
*various.txt* For Vim version 7.3f. Last change: 2010 Aug 01
|
*various.txt* For Vim version 7.3f. Last change: 2010 Aug 10
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -364,7 +364,7 @@ m *+ole* Win32 GUI only: |ole-interface|
|
|||||||
N *+path_extra* Up/downwards search in 'path' and 'tags'
|
N *+path_extra* Up/downwards search in 'path' and 'tags'
|
||||||
m *+perl* Perl interface |perl|
|
m *+perl* Perl interface |perl|
|
||||||
m *+perl/dyn* Perl interface |perl-dynamic| |/dyn|
|
m *+perl/dyn* Perl interface |perl-dynamic| |/dyn|
|
||||||
H *+persistent_undo* Persistent undo |undo-persistence|
|
N *+persistent_undo* Persistent undo |undo-persistence|
|
||||||
*+postscript* |:hardcopy| writes a PostScript file
|
*+postscript* |:hardcopy| writes a PostScript file
|
||||||
N *+printer* |:hardcopy| command
|
N *+printer* |:hardcopy| command
|
||||||
H *+profile* |:profile| command
|
H *+profile* |:profile| command
|
||||||
|
|||||||
@ -14,7 +14,7 @@
|
|||||||
if &cp || exists("g:loaded_tarPlugin")
|
if &cp || exists("g:loaded_tarPlugin")
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
let g:loaded_tarPlugin = "v25"
|
let g:loaded_tarPlugin = "v26"
|
||||||
let s:keepcpo = &cpo
|
let s:keepcpo = &cpo
|
||||||
set cpo&vim
|
set cpo&vim
|
||||||
|
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
" Vim syntax file
|
" Vim syntax file
|
||||||
" Language: TeX
|
" Language: TeX
|
||||||
" Maintainer: Dr. Charles E. Campbell, Jr. <NdrchipO@ScampbellPfamily.AbizM>
|
" Maintainer: Dr. Charles E. Campbell, Jr. <NdrchipO@ScampbellPfamily.AbizM>
|
||||||
" Last Change: Aug 04, 2010
|
" Last Change: Aug 09, 2010
|
||||||
" Version: 55
|
" Version: 56
|
||||||
" URL: http://mysite.verizon.net/astronaut/vim/index.html#vimlinks_syntax
|
" URL: http://mysite.verizon.net/astronaut/vim/index.html#vimlinks_syntax
|
||||||
"
|
"
|
||||||
" Notes: {{{1
|
" Notes: {{{1
|
||||||
@ -55,9 +55,9 @@ if exists("g:tex_tex") && !exists("g:tex_no_error")
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
" let user determine which classes of concealment will be supported
|
" let user determine which classes of concealment will be supported
|
||||||
" a=accents/ligatures m=math symbols g=Greek s=superscripts/subscripts
|
" a=accents/ligatures d=delimiters m=math symbols g=Greek s=superscripts/subscripts
|
||||||
if !exists("g:tex_conceal")
|
if !exists("g:tex_conceal")
|
||||||
let s:tex_conceal= 'amgs'
|
let s:tex_conceal= 'admgs'
|
||||||
else
|
else
|
||||||
let s:tex_conceal= g:tex_conceal
|
let s:tex_conceal= g:tex_conceal
|
||||||
endif
|
endif
|
||||||
@ -350,7 +350,7 @@ if !exists("tex_no_math")
|
|||||||
call TexNewMathZone("L","xxalignat",0)
|
call TexNewMathZone("L","xxalignat",0)
|
||||||
|
|
||||||
" Inline Math Zones: {{{2
|
" Inline Math Zones: {{{2
|
||||||
if has("conceal") && &enc == 'utf-8'
|
if has("conceal") && &enc == 'utf-8' && s:tex_conceal =~ 'd'
|
||||||
syn region texMathZoneV matchgroup=Delimiter start="\\(" matchgroup=Delimiter end="\\)\|%stopzone\>" keepend concealends contains=@texMathZoneGroup
|
syn region texMathZoneV matchgroup=Delimiter start="\\(" matchgroup=Delimiter end="\\)\|%stopzone\>" keepend concealends contains=@texMathZoneGroup
|
||||||
syn region texMathZoneW matchgroup=Delimiter start="\\\[" matchgroup=Delimiter end="\\]\|%stopzone\>" keepend concealends contains=@texMathZoneGroup
|
syn region texMathZoneW matchgroup=Delimiter start="\\\[" matchgroup=Delimiter end="\\]\|%stopzone\>" keepend concealends contains=@texMathZoneGroup
|
||||||
syn region texMathZoneX matchgroup=Delimiter start="\$" skip="\\\\\|\\\$" matchgroup=Delimiter end="\$" end="%stopzone\>" concealends contains=@texMathZoneGroup
|
syn region texMathZoneX matchgroup=Delimiter start="\$" skip="\\\\\|\\\$" matchgroup=Delimiter end="\$" end="%stopzone\>" concealends contains=@texMathZoneGroup
|
||||||
@ -514,215 +514,247 @@ if !exists("g:tex_no_error")
|
|||||||
syn region texStyleMatcher matchgroup=Delimiter start="\[" end="]" contains=@texStyleGroup,texError contained
|
syn region texStyleMatcher matchgroup=Delimiter start="\[" end="]" contains=@texStyleGroup,texError contained
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Conceal mode support (supports set cole=1) {{{1
|
" Conceal mode support (supports set cole=2) {{{1
|
||||||
if has("conceal") && &enc == 'utf-8'
|
if has("conceal") && &enc == 'utf-8'
|
||||||
|
|
||||||
" Math Symbols {{{2
|
" Math Symbols {{{2
|
||||||
|
" (many of these symbols were contributed by Björn Winckler)
|
||||||
if s:tex_conceal =~ 'm'
|
if s:tex_conceal =~ 'm'
|
||||||
syn match texMathSymbol '\\angle\>' contained conceal cchar=∠
|
let s:texMathList=[
|
||||||
syn match texMathSymbol '\\approx\>' contained conceal cchar=≈
|
\ ['angle' , '∠'],
|
||||||
syn match texMathSymbol '\\ast\>' contained conceal cchar=∗
|
\ ['approx' , '≈'],
|
||||||
syn match texMathSymbol '\\asymp\>' contained conceal cchar=≍
|
\ ['ast' , '∗'],
|
||||||
syn match texMathSymbol '\\backepsilon\>' contained conceal cchar=∍
|
\ ['asymp' , '≍'],
|
||||||
syn match texMathSymbol '\\backsimeq\>' contained conceal cchar=≃
|
\ ['backepsilon' , '∍'],
|
||||||
syn match texMathSymbol '\\barwedge\>' contained conceal cchar=⊼
|
\ ['backsimeq' , '≃'],
|
||||||
syn match texMathSymbol '\\because\>' contained conceal cchar=∵
|
\ ['barwedge' , '⊼'],
|
||||||
syn match texMathSymbol '\\between\>' contained conceal cchar=≬
|
\ ['because' , '∵'],
|
||||||
syn match texMathSymbol '\\bigcap\>' contained conceal cchar=∩
|
\ ['between' , '≬'],
|
||||||
syn match texMathSymbol '\\bigcup\>' contained conceal cchar=∪
|
\ ['bigcap' , '∩'],
|
||||||
syn match texMathSymbol '\\bigodot\>' contained conceal cchar=⊙
|
\ ['bigcup' , '∪'],
|
||||||
syn match texMathSymbol '\\bigoplus\>' contained conceal cchar=⊕
|
\ ['bigodot' , '⊙'],
|
||||||
syn match texMathSymbol '\\bigotimes\>' contained conceal cchar=⊗
|
\ ['bigoplus' , '⊕'],
|
||||||
syn match texMathSymbol '\\bigsqcup\>' contained conceal cchar=⊔
|
\ ['bigotimes' , '⊗'],
|
||||||
syn match texMathSymbol '\\bigtriangledown\>' contained conceal cchar=∇
|
\ ['bigsqcup' , '⊔'],
|
||||||
syn match texMathSymbol '\\bigvee\>' contained conceal cchar=⋁
|
\ ['bigtriangledown', '∇'],
|
||||||
syn match texMathSymbol '\\bigwedge\>' contained conceal cchar=⋀
|
\ ['bigvee' , '⋁'],
|
||||||
syn match texMathSymbol '\\blacksquare\>' contained conceal cchar=∎
|
\ ['bigwedge' , '⋀'],
|
||||||
syn match texMathSymbol '\\bot\>' contained conceal cchar=⊥
|
\ ['blacksquare' , '∎'],
|
||||||
syn match texMathSymbol '\\boxdot\>' contained conceal cchar=⊡
|
\ ['bot' , '⊥'],
|
||||||
syn match texMathSymbol '\\boxminus\>' contained conceal cchar=⊟
|
\ ['boxdot' , '⊡'],
|
||||||
syn match texMathSymbol '\\boxplus\>' contained conceal cchar=⊞
|
\ ['boxminus' , '⊟'],
|
||||||
syn match texMathSymbol '\\boxtimes\>' contained conceal cchar=⊠
|
\ ['boxplus' , '⊞'],
|
||||||
syn match texMathSymbol '\\bumpeq\>' contained conceal cchar=≏
|
\ ['boxtimes' , '⊠'],
|
||||||
syn match texMathSymbol '\\Bumpeq\>' contained conceal cchar=≎
|
\ ['bumpeq' , '≏'],
|
||||||
syn match texMathSymbol '\\cap\>' contained conceal cchar=∩
|
\ ['Bumpeq' , '≎'],
|
||||||
syn match texMathSymbol '\\Cap\>' contained conceal cchar=⋒
|
\ ['cap' , '∩'],
|
||||||
syn match texMathSymbol '\\cdot\>' contained conceal cchar=·
|
\ ['Cap' , '⋒'],
|
||||||
syn match texMathSymbol '\\cdots\>' contained conceal cchar=⋯
|
\ ['cdot' , '·'],
|
||||||
syn match texMathSymbol '\\circ\>' contained conceal cchar=∘
|
\ ['cdots' , '⋯'],
|
||||||
syn match texMathSymbol '\\circeq\>' contained conceal cchar=≗
|
\ ['circ' , '∘'],
|
||||||
syn match texMathSymbol '\\circledast\>' contained conceal cchar=⊛
|
\ ['circeq' , '≗'],
|
||||||
syn match texMathSymbol '\\circledcirc\>' contained conceal cchar=⊚
|
\ ['circlearrowleft', '↺'],
|
||||||
syn match texMathSymbol '\\complement\>' contained conceal cchar=∁
|
\ ['circlearrowright', '↻'],
|
||||||
syn match texMathSymbol '\\cong\>' contained conceal cchar=≅
|
\ ['circledast' , '⊛'],
|
||||||
syn match texMathSymbol '\\coprod\>' contained conceal cchar=∐
|
\ ['circledcirc' , '⊚'],
|
||||||
syn match texMathSymbol '\\cup\>' contained conceal cchar=∪
|
\ ['complement' , '∁'],
|
||||||
syn match texMathSymbol '\\Cup\>' contained conceal cchar=⋓
|
\ ['cong' , '≅'],
|
||||||
syn match texMathSymbol '\\curlyeqprec\>' contained conceal cchar=⋞
|
\ ['coprod' , '∐'],
|
||||||
syn match texMathSymbol '\\curlyeqsucc\>' contained conceal cchar=⋟
|
\ ['cup' , '∪'],
|
||||||
syn match texMathSymbol '\\curlyvee\>' contained conceal cchar=⋎
|
\ ['Cup' , '⋓'],
|
||||||
syn match texMathSymbol '\\curlywedge\>' contained conceal cchar=⋏
|
\ ['curlyeqprec' , '⋞'],
|
||||||
syn match texMathSymbol '\\dashv\>' contained conceal cchar=⊣
|
\ ['curlyeqsucc' , '⋟'],
|
||||||
syn match texMathSymbol '\\diamond\>' contained conceal cchar=⋄
|
\ ['curlyvee' , '⋎'],
|
||||||
syn match texMathSymbol '\\div\>' contained conceal cchar=÷
|
\ ['curlywedge' , '⋏'],
|
||||||
syn match texMathSymbol '\\doteq\>' contained conceal cchar=≐
|
\ ['dashv' , '⊣'],
|
||||||
syn match texMathSymbol '\\doteqdot\>' contained conceal cchar=≑
|
\ ['diamond' , '⋄'],
|
||||||
syn match texMathSymbol '\\dotplus\>' contained conceal cchar=∔
|
\ ['div' , '÷'],
|
||||||
syn match texMathSymbol '\\dotsb\>' contained conceal cchar=⋯
|
\ ['doteq' , '≐'],
|
||||||
syn match texMathSymbol '\\dotsc\>' contained conceal cchar=…
|
\ ['doteqdot' , '≑'],
|
||||||
syn match texMathSymbol '\\dots\>' contained conceal cchar=…
|
\ ['dotplus' , '∔'],
|
||||||
syn match texMathSymbol '\\dotsi\>' contained conceal cchar=⋯
|
\ ['dotsb' , '⋯'],
|
||||||
syn match texMathSymbol '\\dotso\>' contained conceal cchar=…
|
\ ['dotsc' , '…'],
|
||||||
syn match texMathSymbol '\\doublebarwedge\>' contained conceal cchar=⩞
|
\ ['dots' , '…'],
|
||||||
syn match texMathSymbol '\\emptyset\>' contained conceal cchar=∅
|
\ ['dotsi' , '⋯'],
|
||||||
syn match texMathSymbol '\\eqcirc\>' contained conceal cchar=≖
|
\ ['dotso' , '…'],
|
||||||
syn match texMathSymbol '\\eqsim\>' contained conceal cchar=≂
|
\ ['doublebarwedge' , '⩞'],
|
||||||
syn match texMathSymbol '\\eqslantgtr\>' contained conceal cchar=⪖
|
\ ['downarrow' , '↓'],
|
||||||
syn match texMathSymbol '\\eqslantless\>' contained conceal cchar=⪕
|
\ ['Downarrow' , '⇓'],
|
||||||
syn match texMathSymbol '\\equiv\>' contained conceal cchar=≡
|
\ ['emptyset' , '∅'],
|
||||||
syn match texMathSymbol '\\exists\>' contained conceal cchar=∃
|
\ ['eqcirc' , '≖'],
|
||||||
syn match texMathSymbol '\\fallingdotseq\>' contained conceal cchar=≒
|
\ ['eqsim' , '≂'],
|
||||||
syn match texMathSymbol '\\forall\>' contained conceal cchar=∀
|
\ ['eqslantgtr' , '⪖'],
|
||||||
syn match texMathSymbol '\\ge\>' contained conceal cchar=≥
|
\ ['eqslantless' , '⪕'],
|
||||||
syn match texMathSymbol '\\geq\>' contained conceal cchar=≥
|
\ ['equiv' , '≡'],
|
||||||
syn match texMathSymbol '\\geqq\>' contained conceal cchar=≧
|
\ ['exists' , '∃'],
|
||||||
syn match texMathSymbol '\\gneqq\>' contained conceal cchar=≩
|
\ ['fallingdotseq' , '≒'],
|
||||||
syn match texMathSymbol '\\gtrdot\>' contained conceal cchar=⋗
|
\ ['forall' , '∀'],
|
||||||
syn match texMathSymbol '\\gtreqless\>' contained conceal cchar=⋛
|
\ ['ge' , '≥'],
|
||||||
syn match texMathSymbol '\\gtrless\>' contained conceal cchar=≷
|
\ ['geq' , '≥'],
|
||||||
syn match texMathSymbol '\\gtrsim\>' contained conceal cchar=≳
|
\ ['geqq' , '≧'],
|
||||||
syn match texMathSymbol '\\iiint\>' contained conceal cchar=∭
|
\ ['gets' , '←'],
|
||||||
syn match texMathSymbol '\\iint\>' contained conceal cchar=∬
|
\ ['gneqq' , '≩'],
|
||||||
syn match texMathSymbol '\\Im\>' contained conceal cchar=ℑ
|
\ ['gtrdot' , '⋗'],
|
||||||
syn match texMathSymbol '\\in\>' contained conceal cchar=∈
|
\ ['gtreqless' , '⋛'],
|
||||||
syn match texMathSymbol '\\infty\>' contained conceal cchar=∞
|
\ ['gtrless' , '≷'],
|
||||||
syn match texMathSymbol '\\int\>' contained conceal cchar=∫
|
\ ['gtrsim' , '≳'],
|
||||||
syn match texMathSymbol '\\lceil\>' contained conceal cchar=⌈
|
\ ['hookleftarrow' , '↩'],
|
||||||
syn match texMathSymbol '\\ldots\>' contained conceal cchar=…
|
\ ['hookrightarrow' , '↪'],
|
||||||
syn match texMathSymbol '\\le\>' contained conceal cchar=≤
|
\ ['iiint' , '∭'],
|
||||||
syn match texMathSymbol '\\leftarrow\>' contained conceal cchar=⟵
|
\ ['iint' , '∬'],
|
||||||
syn match texMathSymbol '\\Leftarrow\>' contained conceal cchar=⟸
|
\ ['Im' , 'ℑ'],
|
||||||
syn match texMathSymbol '\\left(' contained conceal cchar=(
|
\ ['in' , '∈'],
|
||||||
syn match texMathSymbol '\\left\[' contained conceal cchar=[
|
\ ['infty' , '∞'],
|
||||||
syn match texMathSymbol '\\left\\{' contained conceal cchar={
|
\ ['int' , '∫'],
|
||||||
syn match texMathSymbol '\\leftthreetimes\>' contained conceal cchar=⋋
|
\ ['lceil' , '⌈'],
|
||||||
syn match texMathSymbol '\\leq\>' contained conceal cchar=≤
|
\ ['ldots' , '…'],
|
||||||
syn match texMathSymbol '\\leqq\>' contained conceal cchar=≦
|
\ ['le' , '≤'],
|
||||||
syn match texMathSymbol '\\lessdot\>' contained conceal cchar=⋖
|
\ ['leftarrow' , '⟵'],
|
||||||
syn match texMathSymbol '\\lesseqgtr\>' contained conceal cchar=⋚
|
\ ['Leftarrow' , '⟸'],
|
||||||
syn match texMathSymbol '\\lesssim\>' contained conceal cchar=≲
|
\ ['leftarrowtail' , '↢'],
|
||||||
syn match texMathSymbol '\\lfloor\>' contained conceal cchar=⌊
|
\ ['left(' , '('],
|
||||||
syn match texMathSymbol '\\lneqq\>' contained conceal cchar=≨
|
\ ['left\[' , '['],
|
||||||
syn match texMathSymbol '\\ltimes\>' contained conceal cchar=⋉
|
\ ['left\\{' , '{'],
|
||||||
syn match texMathSymbol '\\mapsto\>' contained conceal cchar=↦
|
\ ['Leftrightarrow' , '⇔'],
|
||||||
syn match texMathSymbol '\\measuredangle\>' contained conceal cchar=∡
|
\ ['leftrightsquigarrow', '↭'],
|
||||||
syn match texMathSymbol '\\mid\>' contained conceal cchar=∣
|
\ ['leftthreetimes' , '⋋'],
|
||||||
syn match texMathSymbol '\\mp\>' contained conceal cchar=∓
|
\ ['leq' , '≤'],
|
||||||
syn match texMathSymbol '\\nabla\>' contained conceal cchar=∇
|
\ ['leqq' , '≦'],
|
||||||
syn match texMathSymbol '\\ncong\>' contained conceal cchar=≇
|
\ ['lessdot' , '⋖'],
|
||||||
syn match texMathSymbol '\\ne\>' contained conceal cchar=≠
|
\ ['lesseqgtr' , '⋚'],
|
||||||
syn match texMathSymbol '\\neg\>' contained conceal cchar=¬
|
\ ['lesssim' , '≲'],
|
||||||
syn match texMathSymbol '\\neq\>' contained conceal cchar=≠
|
\ ['lfloor' , '⌊'],
|
||||||
syn match texMathSymbol '\\nexists\>' contained conceal cchar=∄
|
\ ['lneqq' , '≨'],
|
||||||
syn match texMathSymbol '\\ngeq\>' contained conceal cchar=≱
|
\ ['ltimes' , '⋉'],
|
||||||
syn match texMathSymbol '\\ngeqq\>' contained conceal cchar=≱
|
\ ['mapsto' , '↦'],
|
||||||
syn match texMathSymbol '\\ngtr\>' contained conceal cchar=≯
|
\ ['measuredangle' , '∡'],
|
||||||
syn match texMathSymbol '\\ni\>' contained conceal cchar=∋
|
\ ['mid' , '∣'],
|
||||||
syn match texMathSymbol '\\nleq\>' contained conceal cchar=≰
|
\ ['mp' , '∓'],
|
||||||
syn match texMathSymbol '\\nleqq\>' contained conceal cchar=≰
|
\ ['nabla' , '∇'],
|
||||||
syn match texMathSymbol '\\nless\>' contained conceal cchar=≮
|
\ ['ncong' , '≇'],
|
||||||
syn match texMathSymbol '\\nmid\>' contained conceal cchar=∤
|
\ ['nearrow' , '↗'],
|
||||||
syn match texMathSymbol '\\notin\>' contained conceal cchar=∉
|
\ ['ne' , '≠'],
|
||||||
syn match texMathSymbol '\\nprec\>' contained conceal cchar=⊀
|
\ ['neg' , '¬'],
|
||||||
syn match texMathSymbol '\\nsim\>' contained conceal cchar=≁
|
\ ['neq' , '≠'],
|
||||||
syn match texMathSymbol '\\nsucc\>' contained conceal cchar=⊁
|
\ ['nexists' , '∄'],
|
||||||
syn match texMathSymbol '\\ntriangleleft\>' contained conceal cchar=⋪
|
\ ['ngeq' , '≱'],
|
||||||
syn match texMathSymbol '\\ntrianglelefteq\>' contained conceal cchar=⋬
|
\ ['ngeqq' , '≱'],
|
||||||
syn match texMathSymbol '\\ntriangleright\>' contained conceal cchar=⋫
|
\ ['ngtr' , '≯'],
|
||||||
syn match texMathSymbol '\\ntrianglerighteq\>' contained conceal cchar=⋭
|
\ ['ni' , '∋'],
|
||||||
syn match texMathSymbol '\\nvdash\>' contained conceal cchar=⊬
|
\ ['nleftarrow' , '↚'],
|
||||||
syn match texMathSymbol '\\nvDash\>' contained conceal cchar=⊭
|
\ ['nLeftarrow' , '⇍'],
|
||||||
syn match texMathSymbol '\\nVdash\>' contained conceal cchar=⊮
|
\ ['nLeftrightarrow', '⇎'],
|
||||||
syn match texMathSymbol '\\odot\>' contained conceal cchar=⊙
|
\ ['nleq' , '≰'],
|
||||||
syn match texMathSymbol '\\oint\>' contained conceal cchar=∮
|
\ ['nleqq' , '≰'],
|
||||||
syn match texMathSymbol '\\ominus\>' contained conceal cchar=⊖
|
\ ['nless' , '≮'],
|
||||||
syn match texMathSymbol '\\oplus\>' contained conceal cchar=⊕
|
\ ['nmid' , '∤'],
|
||||||
syn match texMathSymbol '\\oslash\>' contained conceal cchar=⊘
|
\ ['notin' , '∉'],
|
||||||
syn match texMathSymbol '\\otimes\>' contained conceal cchar=⊗
|
\ ['nprec' , '⊀'],
|
||||||
syn match texMathSymbol '\\owns\>' contained conceal cchar=∋
|
\ ['nrightarrow' , '↛'],
|
||||||
syn match texMathSymbol '\\partial\>' contained conceal cchar=∂
|
\ ['nRightarrow' , '⇏'],
|
||||||
syn match texMathSymbol '\\perp\>' contained conceal cchar=⊥
|
\ ['nsim' , '≁'],
|
||||||
syn match texMathSymbol '\\pitchfork\>' contained conceal cchar=⋔
|
\ ['nsucc' , '⊁'],
|
||||||
syn match texMathSymbol '\\pm\>' contained conceal cchar=±
|
\ ['ntriangleleft' , '⋪'],
|
||||||
syn match texMathSymbol '\\precapprox\>' contained conceal cchar=⪷
|
\ ['ntrianglelefteq', '⋬'],
|
||||||
syn match texMathSymbol '\\prec\>' contained conceal cchar=≺
|
\ ['ntriangleright' , '⋫'],
|
||||||
syn match texMathSymbol '\\preccurlyeq\>' contained conceal cchar=≼
|
\ ['ntrianglerighteq', '⋭'],
|
||||||
syn match texMathSymbol '\\preceq\>' contained conceal cchar=⪯
|
\ ['nvdash' , '⊬'],
|
||||||
syn match texMathSymbol '\\precnapprox\>' contained conceal cchar=⪹
|
\ ['nvDash' , '⊭'],
|
||||||
syn match texMathSymbol '\\precneqq\>' contained conceal cchar=⪵
|
\ ['nVdash' , '⊮'],
|
||||||
syn match texMathSymbol '\\precsim\>' contained conceal cchar=≾
|
\ ['nwarrow' , '↖'],
|
||||||
syn match texMathSymbol '\\prod\>' contained conceal cchar=∏
|
\ ['odot' , '⊙'],
|
||||||
syn match texMathSymbol '\\propto\>' contained conceal cchar=∝
|
\ ['oint' , '∮'],
|
||||||
syn match texMathSymbol '\\rceil\>' contained conceal cchar=⌉
|
\ ['ominus' , '⊖'],
|
||||||
syn match texMathSymbol '\\Re\>' contained conceal cchar=ℜ
|
\ ['oplus' , '⊕'],
|
||||||
syn match texMathSymbol '\\rfloor\>' contained conceal cchar=⌋
|
\ ['oslash' , '⊘'],
|
||||||
syn match texMathSymbol '\\rightarrow\>' contained conceal cchar=⟶
|
\ ['otimes' , '⊗'],
|
||||||
syn match texMathSymbol '\\Rightarrow\>' contained conceal cchar=⟹
|
\ ['owns' , '∋'],
|
||||||
syn match texMathSymbol '\\right)' contained conceal cchar=)
|
\ ['partial' , '∂'],
|
||||||
syn match texMathSymbol '\\right]' contained conceal cchar=]
|
\ ['perp' , '⊥'],
|
||||||
syn match texMathSymbol '\\right\\}' contained conceal cchar=}
|
\ ['pitchfork' , '⋔'],
|
||||||
syn match texMathSymbol '\\rightthreetimes\>' contained conceal cchar=⋌
|
\ ['pm' , '±'],
|
||||||
syn match texMathSymbol '\\risingdotseq\>' contained conceal cchar=≓
|
\ ['precapprox' , '⪷'],
|
||||||
syn match texMathSymbol '\\rtimes\>' contained conceal cchar=⋊
|
\ ['prec' , '≺'],
|
||||||
syn match texMathSymbol '\\setminus\>' contained conceal cchar=∖
|
\ ['preccurlyeq' , '≼'],
|
||||||
syn match texMathSymbol '\\sim\>' contained conceal cchar=∼
|
\ ['preceq' , '⪯'],
|
||||||
syn match texMathSymbol '\\sphericalangle\>' contained conceal cchar=∢
|
\ ['precnapprox' , '⪹'],
|
||||||
syn match texMathSymbol '\\sqcap\>' contained conceal cchar=⊓
|
\ ['precneqq' , '⪵'],
|
||||||
syn match texMathSymbol '\\sqcup\>' contained conceal cchar=⊔
|
\ ['precsim' , '≾'],
|
||||||
syn match texMathSymbol '\\sqsubset\>' contained conceal cchar=⊏
|
\ ['prod' , '∏'],
|
||||||
syn match texMathSymbol '\\sqsubseteq\>' contained conceal cchar=⊑
|
\ ['propto' , '∝'],
|
||||||
syn match texMathSymbol '\\sqsupset\>' contained conceal cchar=⊐
|
\ ['rceil' , '⌉'],
|
||||||
syn match texMathSymbol '\\sqsupseteq\>' contained conceal cchar=⊒
|
\ ['Re' , 'ℜ'],
|
||||||
syn match texMathSymbol '\\subset\>' contained conceal cchar=⊂
|
\ ['rfloor' , '⌋'],
|
||||||
syn match texMathSymbol '\\Subset\>' contained conceal cchar=⋐
|
\ ['rightarrow' , '⟶'],
|
||||||
syn match texMathSymbol '\\subseteq\>' contained conceal cchar=⊆
|
\ ['Rightarrow' , '⟹'],
|
||||||
syn match texMathSymbol '\\subseteqq\>' contained conceal cchar=⫅
|
\ ['rightarrowtail' , '↣'],
|
||||||
syn match texMathSymbol '\\subsetneq\>' contained conceal cchar=⊊
|
\ ['right)' , ')'],
|
||||||
syn match texMathSymbol '\\subsetneqq\>' contained conceal cchar=⫋
|
\ ['right]' , ']'],
|
||||||
syn match texMathSymbol '\\succapprox\>' contained conceal cchar=⪸
|
\ ['right\\}' , '}'],
|
||||||
syn match texMathSymbol '\\succ\>' contained conceal cchar=≻
|
\ ['rightsquigarrow', '↝'],
|
||||||
syn match texMathSymbol '\\succcurlyeq\>' contained conceal cchar=≽
|
\ ['rightthreetimes', '⋌'],
|
||||||
syn match texMathSymbol '\\succeq\>' contained conceal cchar=⪰
|
\ ['risingdotseq' , '≓'],
|
||||||
syn match texMathSymbol '\\succnapprox\>' contained conceal cchar=⪺
|
\ ['rtimes' , '⋊'],
|
||||||
syn match texMathSymbol '\\succneqq\>' contained conceal cchar=⪶
|
\ ['searrow' , '↘'],
|
||||||
syn match texMathSymbol '\\succsim\>' contained conceal cchar=≿
|
\ ['setminus' , '∖'],
|
||||||
syn match texMathSymbol '\\sum\>' contained conceal cchar=∑
|
\ ['sim' , '∼'],
|
||||||
syn match texMathSymbol '\\Supset\>' contained conceal cchar=⋑
|
\ ['sphericalangle' , '∢'],
|
||||||
syn match texMathSymbol '\\supseteq\>' contained conceal cchar=⊇
|
\ ['sqcap' , '⊓'],
|
||||||
syn match texMathSymbol '\\supseteqq\>' contained conceal cchar=⫆
|
\ ['sqcup' , '⊔'],
|
||||||
syn match texMathSymbol '\\supsetneq\>' contained conceal cchar=⊋
|
\ ['sqsubset' , '⊏'],
|
||||||
syn match texMathSymbol '\\supsetneqq\>' contained conceal cchar=⫌
|
\ ['sqsubseteq' , '⊑'],
|
||||||
syn match texMathSymbol '\\surd\>' contained conceal cchar=√
|
\ ['sqsupset' , '⊐'],
|
||||||
syn match texMathSymbol '\\therefore\>' contained conceal cchar=∴
|
\ ['sqsupseteq' , '⊒'],
|
||||||
syn match texMathSymbol '\\times\>' contained conceal cchar=×
|
\ ['subset' , '⊂'],
|
||||||
syn match texMathSymbol '\\to\>' contained conceal cchar=→
|
\ ['Subset' , '⋐'],
|
||||||
syn match texMathSymbol '\\top\>' contained conceal cchar=⊤
|
\ ['subseteq' , '⊆'],
|
||||||
syn match texMathSymbol '\\triangleleft\>' contained conceal cchar=⊲
|
\ ['subseteqq' , '⫅'],
|
||||||
syn match texMathSymbol '\\trianglelefteq\>' contained conceal cchar=⊴
|
\ ['subsetneq' , '⊊'],
|
||||||
syn match texMathSymbol '\\triangleq\>' contained conceal cchar=≜
|
\ ['subsetneqq' , '⫋'],
|
||||||
syn match texMathSymbol '\\triangleright\>' contained conceal cchar=⊳
|
\ ['succapprox' , '⪸'],
|
||||||
syn match texMathSymbol '\\trianglerighteq\>' contained conceal cchar=⊵
|
\ ['succ' , '≻'],
|
||||||
syn match texMathSymbol '\\varnothing\>' contained conceal cchar=∅
|
\ ['succcurlyeq' , '≽'],
|
||||||
syn match texMathSymbol '\\vartriangle\>' contained conceal cchar=∆
|
\ ['succeq' , '⪰'],
|
||||||
syn match texMathSymbol '\\vdash\>' contained conceal cchar=⊢
|
\ ['succnapprox' , '⪺'],
|
||||||
syn match texMathSymbol '\\vDash\>' contained conceal cchar=⊨
|
\ ['succneqq' , '⪶'],
|
||||||
syn match texMathSymbol '\\Vdash\>' contained conceal cchar=⊩
|
\ ['succsim' , '≿'],
|
||||||
syn match texMathSymbol '\\vdots\>' contained conceal cchar=⋮
|
\ ['sum' , '∑'],
|
||||||
syn match texMathSymbol '\\veebar\>' contained conceal cchar=⊻
|
\ ['Supset' , '⋑'],
|
||||||
syn match texMathSymbol '\\vee\>' contained conceal cchar=∨
|
\ ['supseteq' , '⊇'],
|
||||||
syn match texMathSymbol '\\Vvdash\>' contained conceal cchar=⊪
|
\ ['supseteqq' , '⫆'],
|
||||||
syn match texMathSymbol '\\wedge\>' contained conceal cchar=∧
|
\ ['supsetneq' , '⊋'],
|
||||||
syn match texMathSymbol '\\wr\>' contained conceal cchar=≀
|
\ ['supsetneqq' , '⫌'],
|
||||||
|
\ ['surd' , '√'],
|
||||||
|
\ ['swarrow' , '↙'],
|
||||||
|
\ ['therefore' , '∴'],
|
||||||
|
\ ['times' , '×'],
|
||||||
|
\ ['to' , '→'],
|
||||||
|
\ ['top' , '⊤'],
|
||||||
|
\ ['triangleleft' , '⊲'],
|
||||||
|
\ ['trianglelefteq' , '⊴'],
|
||||||
|
\ ['triangleq' , '≜'],
|
||||||
|
\ ['triangleright' , '⊳'],
|
||||||
|
\ ['trianglerighteq', '⊵'],
|
||||||
|
\ ['twoheadleftarrow', '↞'],
|
||||||
|
\ ['twoheadrightarrow', '↠'],
|
||||||
|
\ ['uparrow' , '↑'],
|
||||||
|
\ ['Uparrow' , '⇑'],
|
||||||
|
\ ['updownarrow' , '↕'],
|
||||||
|
\ ['Updownarrow' , '⇕'],
|
||||||
|
\ ['varnothing' , '∅'],
|
||||||
|
\ ['vartriangle' , '∆'],
|
||||||
|
\ ['vdash' , '⊢'],
|
||||||
|
\ ['vDash' , '⊨'],
|
||||||
|
\ ['Vdash' , '⊩'],
|
||||||
|
\ ['vdots' , '⋮'],
|
||||||
|
\ ['veebar' , '⊻'],
|
||||||
|
\ ['vee' , '∨'],
|
||||||
|
\ ['Vvdash' , '⊪'],
|
||||||
|
\ ['wedge' , '∧'],
|
||||||
|
\ ['wr' , '≀']]
|
||||||
|
for texmath in s:texMathList
|
||||||
|
exe "syn match texMathSymbol '\\\\".texmath[0]."\\>' contained conceal cchar=".texmath[1]
|
||||||
|
endfor
|
||||||
|
|
||||||
if &ambw == "double"
|
if &ambw == "double"
|
||||||
syn match texMathSymbol '\\gg\>' contained conceal cchar=≫
|
syn match texMathSymbol '\\gg\>' contained conceal cchar=≫
|
||||||
@ -890,49 +922,62 @@ if has("conceal") && &enc == 'utf-8'
|
|||||||
else
|
else
|
||||||
fun! s:Accents(chr,...)
|
fun! s:Accents(chr,...)
|
||||||
let i= 1
|
let i= 1
|
||||||
for accent in ["`","\\'","^",'"','\~',"r","v"]
|
for accent in ["`","\\'","^",'"','\~','\.',"c","H","k","r","u","v"]
|
||||||
if i > a:0
|
if i > a:0
|
||||||
break
|
break
|
||||||
endif
|
endif
|
||||||
if strlen(a:{i}) == 0
|
if strlen(a:{i}) == 0 || a:{i} == ' ' || a:{i} == '?'
|
||||||
let i= i + 1
|
let i= i + 1
|
||||||
continue
|
continue
|
||||||
endif
|
endif
|
||||||
exe "syn match texAccent '\\\\".accent."{".a:chr."}' conceal cchar=".a:{i}
|
if accent =~ '\a'
|
||||||
|
exe "syn match texAccent '".'\\'.accent.'\(\s*{'.a:chr.'}\|\s\+'.a:chr.'\)'."' conceal cchar=".a:{i}
|
||||||
|
else
|
||||||
|
exe "syn match texAccent '".'\\'.accent.'\s*\({'.a:chr.'}\|'.a:chr.'\)'."' conceal cchar=".a:{i}
|
||||||
|
endif
|
||||||
let i= i + 1
|
let i= i + 1
|
||||||
endfor
|
endfor
|
||||||
endfun
|
endfun
|
||||||
call s:Accents('a','à','á','â','ä','ã','å','ă')
|
" \` \' \^ \" \~ \. \c \H \k \r \u \v
|
||||||
call s:Accents('A','À','Á','Â','Ä','Ã','Å','Ă')
|
call s:Accents('a','à','á','â','ä','ã',' ',' ',' ','ą','å','ă','ă')
|
||||||
call s:Accents('C',"" ,'Ć','Ĉ',"" ,"" ,"" ,'Ć')
|
call s:Accents('A','À','Á','Â','Ä','Ã',' ',' ',' ','Ą','Å','Ă','Ă')
|
||||||
call s:Accents('e','è','é','ê','ë','ẽ',"" ,'ĕ')
|
call s:Accents('c',' ','ć','ĉ',' ',' ','ċ','ç',' ',' ',' ',' ','č')
|
||||||
call s:Accents('E','È','É','Ê','Ë','Ẽ',"" ,'Ė')
|
call s:Accents('C',' ','Ć','Ĉ',' ',' ','Ċ','Ç',' ',' ',' ',' ','Č')
|
||||||
call s:Accents('i','ì','í','î','ï','ĩ',"" ,"ĭ")
|
call s:Accents('d',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','ď')
|
||||||
call s:Accents('I','Ì','Í','Î','Ï','Ĩ',"" ,'Ĭ')
|
call s:Accents('D',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','Ď')
|
||||||
call s:Accents('o','ò','ó','ô','ö','õ',"" ,'ŏ')
|
call s:Accents('e','è','é','ê','ë','ẽ','ė','ȩ',' ','ę',' ','ĕ','ě')
|
||||||
call s:Accents('O','Ò','Ó','Ô','Ö','Õ',"" ,'Ŏ')
|
call s:Accents('E','È','É','Ê','Ë','Ẽ','Ė','Ȩ',' ','Ę',' ','Ĕ','Ě')
|
||||||
call s:Accents('r',"" ,'ŕ',"" ,"" ,"" ,"" ,'ř')
|
call s:Accents('g',' ',' ',' ',' ',' ','ġ','ģ',' ',' ',' ','ğ',' ')
|
||||||
call s:Accents('R',"" ,'Ŕ',"" ,"" ,"" ,"" ,'Ř')
|
call s:Accents('G',' ',' ',' ',' ',' ','Ġ','Ģ',' ',' ',' ','Ğ',' ')
|
||||||
call s:Accents('s',"" ,'ś','ŝ',"" ,"" ,"" ,'š')
|
call s:Accents('i','ì','í','î','ï','ĩ','į',' ',' ',' ',' ','ĭ',' ')
|
||||||
call s:Accents('S',"" ,'Ś','Ŝ',"" ,"" ,"" ,'Š')
|
call s:Accents('I','Ì','Í','Î','Ï','Ĩ','İ',' ',' ',' ',' ','Ĭ',' ')
|
||||||
call s:Accents('u','ù','ú','û','ü','ũ',"" ,'ŭ')
|
call s:Accents('l',' ','ĺ','ľ',' ',' ',' ','ļ',' ',' ',' ',' ','ľ')
|
||||||
call s:Accents('U','Ù','Ú','Û','Ü','Ũ',"" ,'Ŭ')
|
call s:Accents('L',' ','Ĺ','Ľ',' ',' ',' ','Ļ',' ',' ',' ',' ','Ľ')
|
||||||
call s:Accents('y','ỳ','ý','ŷ','ÿ','ỹ',"" ,"" )
|
call s:Accents('n',' ','ń',' ',' ','ñ',' ','ņ',' ',' ',' ',' ','ň')
|
||||||
call s:Accents('Y','Ỳ','Ý','Ŷ','Ÿ','Ỹ',"" ,"" )
|
call s:Accents('N',' ','Ń',' ',' ','Ñ',' ','Ņ',' ',' ',' ',' ','Ň')
|
||||||
|
call s:Accents('o','ò','ó','ô','ö','õ','ȯ',' ','ő','ǫ',' ','ŏ',' ')
|
||||||
|
call s:Accents('O','Ò','Ó','Ô','Ö','Õ','Ȯ',' ','Ő','Ǫ',' ','Ŏ',' ')
|
||||||
|
call s:Accents('r',' ','ŕ',' ',' ',' ',' ','ŗ',' ',' ',' ',' ','ř')
|
||||||
|
call s:Accents('R',' ','Ŕ',' ',' ',' ',' ','Ŗ',' ',' ',' ',' ','Ř')
|
||||||
|
call s:Accents('s',' ','ś','ŝ',' ',' ',' ','ş',' ',' ',' ',' ','š')
|
||||||
|
call s:Accents('S',' ','Ś','Ŝ',' ',' ',' ','Ş',' ',' ',' ',' ','Š')
|
||||||
|
call s:Accents('t',' ',' ',' ',' ',' ',' ','ţ',' ',' ',' ',' ','ť')
|
||||||
|
call s:Accents('T',' ',' ',' ',' ',' ',' ','Ţ',' ',' ',' ',' ','Ť')
|
||||||
|
call s:Accents('u','ù','ú','û','ü','ũ',' ',' ','ű',' ','ů','ŭ',' ')
|
||||||
|
call s:Accents('U','Ù','Ú','Û','Ü','Ũ',' ',' ','Ű',' ','Ů','Ŭ',' ')
|
||||||
|
call s:Accents('w',' ',' ','ŵ',' ',' ',' ',' ',' ',' ',' ',' ',' ')
|
||||||
|
call s:Accents('W',' ',' ','Ŵ',' ',' ',' ',' ',' ',' ',' ',' ',' ')
|
||||||
|
call s:Accents('y','ỳ','ý','ŷ','ÿ','ỹ',' ',' ',' ',' ',' ',' ',' ')
|
||||||
|
call s:Accents('Y','Ỳ','Ý','Ŷ','Ÿ','Ỹ',' ',' ',' ',' ',' ',' ',' ')
|
||||||
|
call s:Accents('z',' ','ź',' ',' ',' ','ż',' ',' ',' ',' ',' ','ž')
|
||||||
|
call s:Accents('Z',' ','Ź',' ',' ',' ','Ż',' ',' ',' ',' ',' ','Ž')
|
||||||
|
call s:Accents('\\i','ì','í','î','ï','ĩ','į',' ',' ',' ',' ','ĭ',' ')
|
||||||
|
" \` \' \^ \" \~ \. \c \H \k \r \u \v
|
||||||
delfun s:Accents
|
delfun s:Accents
|
||||||
syn match texAccent '\\aa\>' conceal cchar=å
|
syn match texAccent '\\aa\>' conceal cchar=å
|
||||||
syn match texAccent '\\AA\>' conceal cchar=Å
|
syn match texAccent '\\AA\>' conceal cchar=Å
|
||||||
syn match texAccent '\\k{a}' conceal cchar=ą
|
|
||||||
syn match texAccent '\\k{A}' conceal cchar=Ą
|
|
||||||
syn match texAccent '\\c{C}' conceal cchar=Ç
|
|
||||||
syn match texAccent '\\c{c}' conceal cchar=ç
|
|
||||||
syn match texAccent '\\\~{n}' conceal cchar=ñ
|
|
||||||
syn match texAccent '\\\~{N}' conceal cchar=Ñ
|
|
||||||
syn match texAccent '\\o\>' conceal cchar=ø
|
syn match texAccent '\\o\>' conceal cchar=ø
|
||||||
syn match texAccent '\\O\>' conceal cchar=Ø
|
syn match texAccent '\\O\>' conceal cchar=Ø
|
||||||
syn match texAccent '\\H{o}' conceal cchar=ő
|
|
||||||
syn match texAccent '\\H{O}' conceal cchar=Ő
|
|
||||||
syn match texAccent '\\c{r}' conceal cchar=ŗ
|
|
||||||
syn match texLigature '\\AE\>' conceal cchar=Æ
|
syn match texLigature '\\AE\>' conceal cchar=Æ
|
||||||
syn match texLigature '\\ae\>' conceal cchar=æ
|
syn match texLigature '\\ae\>' conceal cchar=æ
|
||||||
syn match texLigature '\\oe\>' conceal cchar=œ
|
syn match texLigature '\\oe\>' conceal cchar=œ
|
||||||
@ -995,6 +1040,11 @@ if did_tex_syntax_inits == 1
|
|||||||
HiLink texMathDelimSet2 texMathDelim
|
HiLink texMathDelimSet2 texMathDelim
|
||||||
HiLink texMathDelimKey texMathDelim
|
HiLink texMathDelimKey texMathDelim
|
||||||
HiLink texMathMatcher texMath
|
HiLink texMathMatcher texMath
|
||||||
|
HiLink texAccent texStatement
|
||||||
|
HiLink texGreek texStatement
|
||||||
|
HiLink texSuperscript texStatement
|
||||||
|
HiLink texSubscript texStatement
|
||||||
|
HiLink texMathSymbol texStatement
|
||||||
HiLink texMathZoneV texMath
|
HiLink texMathZoneV texMath
|
||||||
HiLink texMathZoneW texMath
|
HiLink texMathZoneW texMath
|
||||||
HiLink texMathZoneX texMath
|
HiLink texMathZoneX texMath
|
||||||
|
|||||||
Reference in New Issue
Block a user