File: fasta.vim

package info (click to toggle)
biosyntax 1.0.0b-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,020 kB
  • sloc: sh: 876; javascript: 292; xml: 246; makefile: 52
file content (28 lines) | stat: -rw-r--r-- 675 bytes parent folder | download | duplicates (4)
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
if exists("syntax_on")
	syntax reset
	colorscheme bioSyntax
	set nowrap
endif

" In the future, implement 'context-aware' fasta
" in which Nucleotides vs. Amino Acid sequences are detected
" and colored accordingly

syntax match headerbw ">.*$"
syntax match ntA "[Aa]"
syntax match ntG "[Gg]" 
syntax match ntC "[Cc]" 
syntax match ntT "[Tt]" 
syntax match ntU "[Uu]" 
syntax match ntR "[Rr]" 
syntax match ntY "[Yy]" 
syntax match ntS "[Ss]" 
syntax match ntW "[Ww]" 
syntax match ntM "[Mm]" 
syntax match ntK "[Kk]" 
syntax match ntD "[Dd]" 
syntax match ntB "[Bb]" 
syntax match ntV "[Vv]" 
syntax match ntH "[Hh]" 
syntax match ntN "[Nn]" 
syntax match ntGap "[/\-/\.]"