mirror of
https://gitlab.com/scemama/irpf90.git
synced 2024-11-08 15:13:42 +01:00
Removed conceal in vim
This commit is contained in:
parent
8361bf1304
commit
7582204c82
227
src/irpf90.vim
227
src/irpf90.vim
@ -2,9 +2,8 @@
|
|||||||
" Language: IRPF90
|
" Language: IRPF90
|
||||||
" Version: 0.1
|
" Version: 0.1
|
||||||
" URL:
|
" URL:
|
||||||
" Last Change: 2011 Nov. 9
|
" Last Change: 2018 Nov. 28
|
||||||
" Maintainer:
|
" Maintainer:
|
||||||
" Usage: Do :help irpf90-syntax from Vim
|
|
||||||
" Credits:
|
" Credits:
|
||||||
" Version 0.1 was based on the fortran 95 syntax file by Ajit J. Thakkar
|
" Version 0.1 was based on the fortran 95 syntax file by Ajit J. Thakkar
|
||||||
|
|
||||||
@ -373,119 +372,119 @@ map K :call ReadMan()<CR>
|
|||||||
set equalprg=irpf90_indent
|
set equalprg=irpf90_indent
|
||||||
|
|
||||||
|
|
||||||
if exists('g:no_irpf90_conceal') || !has('conceal') || &enc != 'utf-8'
|
"if exists('g:no_irpf90_conceal') || !has('conceal') || &enc != 'utf-8'
|
||||||
finish
|
" finish
|
||||||
endif
|
"endif
|
||||||
|
|
||||||
syntax match irpf90NiceOperator "<-" conceal cchar=←
|
"syntax match irpf90NiceOperator "<-" conceal cchar=←
|
||||||
iab ← <-
|
"iab ← <-
|
||||||
syntax match irpf90NiceOperator "->" conceal cchar=→
|
"syntax match irpf90NiceOperator "->" conceal cchar=→
|
||||||
iab → ->
|
"iab → ->
|
||||||
syntax match irpf90NiceOperator "==" conceal cchar=≡
|
"syntax match irpf90NiceOperator "==" conceal cchar=≡
|
||||||
iab ≡ ==
|
"iab ≡ ==
|
||||||
syntax match irpf90NiceOperator "\.eq\." conceal cchar=≡
|
"syntax match irpf90NiceOperator "\.eq\." conceal cchar=≡
|
||||||
syntax match irpf90NiceOperator "/=" conceal cchar=≠
|
"syntax match irpf90NiceOperator "/=" conceal cchar=≠
|
||||||
iab ≠ /=
|
"iab ≠ /=
|
||||||
syntax match irpf90NiceOperator "\.ne\." conceal cchar=≠
|
"syntax match irpf90NiceOperator "\.ne\." conceal cchar=≠
|
||||||
syntax match irpf90NiceOperator "\.or\." conceal cchar=∨
|
"syntax match irpf90NiceOperator "\.or\." conceal cchar=∨
|
||||||
iab ∨ .or.
|
"iab ∨ .or.
|
||||||
syntax match irpf90NiceOperator "\.and\." conceal cchar=∧
|
"syntax match irpf90NiceOperator "\.and\." conceal cchar=∧
|
||||||
iab ∧ .and.
|
"iab ∧ .and.
|
||||||
syntax match irpf90NiceOperator "*" conceal cchar=×
|
"syntax match irpf90NiceOperator "*" conceal cchar=×
|
||||||
iab × *
|
"iab × *
|
||||||
|
"
|
||||||
let s:extraConceal = 1
|
"let s:extraConceal = 1
|
||||||
" Some windows font don't support some of the characters,
|
"" Some windows font don't support some of the characters,
|
||||||
" so if they are the main font, we don't load them :)
|
"" so if they are the main font, we don't load them :)
|
||||||
if has("win32")
|
"if has("win32")
|
||||||
let s:incompleteFont = [ 'Consolas'
|
" let s:incompleteFont = [ 'Consolas'
|
||||||
\ , 'Lucida Console'
|
" \ , 'Lucida Console'
|
||||||
\ , 'Courier New'
|
" \ , 'Courier New'
|
||||||
\ ]
|
" \ ]
|
||||||
let s:mainfont = substitute( &guifont, '^\([^:,]\+\).*', '\1', '')
|
" let s:mainfont = substitute( &guifont, '^\([^:,]\+\).*', '\1', '')
|
||||||
for s:fontName in s:incompleteFont
|
" for s:fontName in s:incompleteFont
|
||||||
if s:mainfont ==? s:fontName
|
" if s:mainfont ==? s:fontName
|
||||||
let s:extraConceal = 0
|
" let s:extraConceal = 0
|
||||||
break
|
" break
|
||||||
endif
|
" endif
|
||||||
endfor
|
" endfor
|
||||||
endif
|
"endif
|
||||||
|
"
|
||||||
if s:extraConceal
|
"if s:extraConceal
|
||||||
syntax match irpf90NiceOperator "<=" conceal cchar=≤
|
" syntax match irpf90NiceOperator "<=" conceal cchar=≤
|
||||||
syntax match irpf90NiceOperator "\.le\." conceal cchar=≤
|
" syntax match irpf90NiceOperator "\.le\." conceal cchar=≤
|
||||||
iab ≤ <=
|
" iab ≤ <=
|
||||||
syntax match irpf90NiceOperator ">=" conceal cchar=≥
|
" syntax match irpf90NiceOperator ">=" conceal cchar=≥
|
||||||
syntax match irpf90NiceOperator "\.ge\." conceal cchar=≥
|
" syntax match irpf90NiceOperator "\.ge\." conceal cchar=≥
|
||||||
iab ≥ >=
|
" iab ≥ >=
|
||||||
syntax match irpf90NiceOperator "\.lt\." conceal cchar=<
|
" syntax match irpf90NiceOperator "\.lt\." conceal cchar=<
|
||||||
syntax match irpf90NiceOperator "\.gt\." conceal cchar=>
|
" syntax match irpf90NiceOperator "\.gt\." conceal cchar=>
|
||||||
syntax match irpf90NiceOperator "=>" conceal cchar=⇒
|
" syntax match irpf90NiceOperator "=>" conceal cchar=⇒
|
||||||
iab ⇒ =>
|
" iab ⇒ =>
|
||||||
syntax match irpf90NiceOperator "\:\:" conceal cchar=∷
|
" syntax match irpf90NiceOperator "\:\:" conceal cchar=∷
|
||||||
iab ∷ ::
|
" iab ∷ ::
|
||||||
syntax match irpf90NiceOperator "++" conceal cchar=⧺
|
" syntax match irpf90NiceOperator "++" conceal cchar=⧺
|
||||||
iab ⧺ ++
|
" iab ⧺ ++
|
||||||
syntax match irpf90NiceOperator "\<lapl_" conceal cchar=Δ
|
" syntax match irpf90NiceOperator "\<lapl_" conceal cchar=Δ
|
||||||
syntax match irpf90NiceOperator "\C\<Delta\>" conceal cchar=Δ
|
" syntax match irpf90NiceOperator "\C\<Delta\>" conceal cchar=Δ
|
||||||
iab Δ Delta
|
" iab Δ Delta
|
||||||
syntax match irpf90NiceOperator "\C\<Lambda\>" conceal cchar=Λ
|
" syntax match irpf90NiceOperator "\C\<Lambda\>" conceal cchar=Λ
|
||||||
iab Λ Lambda
|
" iab Λ Lambda
|
||||||
syntax match irpf90NiceOperator "\C\<Pi\>" conceal cchar=Π
|
" syntax match irpf90NiceOperator "\C\<Pi\>" conceal cchar=Π
|
||||||
iab Π Pi
|
" iab Π Pi
|
||||||
syntax match irpf90NiceOperator "\C\<Sigma\>" conceal cchar=Σ
|
" syntax match irpf90NiceOperator "\C\<Sigma\>" conceal cchar=Σ
|
||||||
iab Σ Sigma
|
" iab Σ Sigma
|
||||||
syntax match irpf90NiceOperator "\C\<Psi\>" conceal cchar=Ψ
|
" syntax match irpf90NiceOperator "\C\<Psi\>" conceal cchar=Ψ
|
||||||
iab Ψ Psi
|
" iab Ψ Psi
|
||||||
syntax match irpf90NiceOperator "\C\<Omega\>" conceal cchar=Ω
|
" syntax match irpf90NiceOperator "\C\<Omega\>" conceal cchar=Ω
|
||||||
iab Ω Omega
|
" iab Ω Omega
|
||||||
syntax match irpf90NiceOperator "\C\<alpha\>" conceal cchar=α
|
" syntax match irpf90NiceOperator "\C\<alpha\>" conceal cchar=α
|
||||||
iab α alpha
|
" iab α alpha
|
||||||
syntax match irpf90NiceOperator "\C\<beta\>" conceal cchar=β
|
" syntax match irpf90NiceOperator "\C\<beta\>" conceal cchar=β
|
||||||
iab β beta
|
" iab β beta
|
||||||
syntax match irpf90NiceOperator "\C\<gamma\>" conceal cchar=γ
|
" syntax match irpf90NiceOperator "\C\<gamma\>" conceal cchar=γ
|
||||||
iab γ gamma
|
" iab γ gamma
|
||||||
syntax match irpf90NiceOperator "\C\<delta\>" conceal cchar=δ
|
" syntax match irpf90NiceOperator "\C\<delta\>" conceal cchar=δ
|
||||||
iab δ delta
|
" iab δ delta
|
||||||
syntax match irpf90NiceOperator "\C\<epsilon\>" conceal cchar=ε
|
" syntax match irpf90NiceOperator "\C\<epsilon\>" conceal cchar=ε
|
||||||
iab ε epsilon
|
" iab ε epsilon
|
||||||
syntax match irpf90NiceOperator "\C\<zeta\>" conceal cchar=ζ
|
" syntax match irpf90NiceOperator "\C\<zeta\>" conceal cchar=ζ
|
||||||
iab ζ zeta
|
" iab ζ zeta
|
||||||
syntax match irpf90NiceOperator "\C\<theta\>" conceal cchar=θ
|
" syntax match irpf90NiceOperator "\C\<theta\>" conceal cchar=θ
|
||||||
iab θ theta
|
" iab θ theta
|
||||||
syntax match irpf90NiceOperator "\C\<eta\>" conceal cchar=η
|
" syntax match irpf90NiceOperator "\C\<eta\>" conceal cchar=η
|
||||||
iab η eta
|
" iab η eta
|
||||||
syntax match irpf90NiceOperator "\C\<lambda\>" conceal cchar=λ
|
" syntax match irpf90NiceOperator "\C\<lambda\>" conceal cchar=λ
|
||||||
iab λ lambda
|
" iab λ lambda
|
||||||
syntax match irpf90NiceOperator "\C\<mu\>" conceal cchar=μ
|
" syntax match irpf90NiceOperator "\C\<mu\>" conceal cchar=μ
|
||||||
iab μ mu
|
" iab μ mu
|
||||||
syntax match irpf90NiceOperator "\C\<nu\>" conceal cchar=ν
|
" syntax match irpf90NiceOperator "\C\<nu\>" conceal cchar=ν
|
||||||
iab ν nu
|
" iab ν nu
|
||||||
syntax match irpf90NiceOperator "\C\<pi\>" conceal cchar=π
|
" syntax match irpf90NiceOperator "\C\<pi\>" conceal cchar=π
|
||||||
iab π pi
|
" iab π pi
|
||||||
syntax match irpf90NiceOperator "\C\<rho\>" conceal cchar=ρ
|
" syntax match irpf90NiceOperator "\C\<rho\>" conceal cchar=ρ
|
||||||
iab ρ rho
|
" iab ρ rho
|
||||||
syntax match irpf90NiceOperator "\C\<sigma\>" conceal cchar=σ
|
" syntax match irpf90NiceOperator "\C\<sigma\>" conceal cchar=σ
|
||||||
iab σ sigma
|
" iab σ sigma
|
||||||
syntax match irpf90NiceOperator "\C\<tau\>" conceal cchar=τ
|
" syntax match irpf90NiceOperator "\C\<tau\>" conceal cchar=τ
|
||||||
iab τ tau
|
" iab τ tau
|
||||||
syntax match irpf90NiceOperator "\C\<phi\>" conceal cchar=φ
|
" syntax match irpf90NiceOperator "\C\<phi\>" conceal cchar=φ
|
||||||
iab φ phi
|
" iab φ phi
|
||||||
syntax match irpf90NiceOperator "\C\<nabla\>" conceal cchar=∇
|
" syntax match irpf90NiceOperator "\C\<nabla\>" conceal cchar=∇
|
||||||
iab ∇ nabla
|
" iab ∇ nabla
|
||||||
syntax match irpf90NiceOperator "\C\<grad_" conceal cchar=∇
|
" syntax match irpf90NiceOperator "\C\<grad_" conceal cchar=∇
|
||||||
iab ∇ grad_o
|
" iab ∇ grad_o
|
||||||
syntax match irpf90NiceOperator "\C\<chi\>" conceal cchar=χ
|
" syntax match irpf90NiceOperator "\C\<chi\>" conceal cchar=χ
|
||||||
iab χ chi
|
" iab χ chi
|
||||||
syntax match irpf90NiceOperator "\C\<psi\>" conceal cchar=ψ
|
" syntax match irpf90NiceOperator "\C\<psi\>" conceal cchar=ψ
|
||||||
iab ψ psi
|
" iab ψ psi
|
||||||
syntax match irpf90NiceOperator "\C\<omega\>" conceal cchar=ω
|
" syntax match irpf90NiceOperator "\C\<omega\>" conceal cchar=ω
|
||||||
iab ω omega
|
" iab ω omega
|
||||||
endif
|
"endif
|
||||||
|
"
|
||||||
hi link irpf90NiceOperator Operator
|
"hi link irpf90NiceOperator Operator
|
||||||
hi! link Conceal Operator
|
"hi! link Conceal Operator
|
||||||
setlocal conceallevel=2
|
"setlocal conceallevel=2
|
||||||
|
|
||||||
" vim: set fenc=utf-8:
|
" vim: set fenc=utf-8:
|
||||||
" vim: ts=8 tw=132
|
" vim: ts=8 tw=132
|
||||||
|
@ -1 +1 @@
|
|||||||
version = "1.7.2"
|
version = "1.7.3"
|
||||||
|
Loading…
Reference in New Issue
Block a user