Move out old vim files

This commit is contained in:
Hunter Haugen 2020-02-19 14:20:36 -08:00
parent 35d3cd52a2
commit 336ba41033
Signed by: hunner
GPG key ID: EF99694AA599DDAD
40 changed files with 17 additions and 17 deletions

2
.oldvim/vim/backups/.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
*
!.gitignore

@ -0,0 +1 @@
Subproject commit 787662fe90cd057942bc5b682fd70c87e1a9dd77

@ -0,0 +1 @@
Subproject commit b9f165970346df55862853dd83c8a4f2b2b70262

@ -0,0 +1 @@
Subproject commit f443470b96364c24a775629418a6b2562ec9173e

1
.oldvim/vim/bundle/L9 Submodule

@ -0,0 +1 @@
Subproject commit c822b05ee0886f9a9703227dc85a6d47612c4bf1

@ -0,0 +1 @@
Subproject commit ef22709d8ebba137819ab0e60db5463b480934cd

@ -0,0 +1 @@
Subproject commit 4c3eafd97f0c0199a8630fb77c2160c58142d524

@ -0,0 +1 @@
Subproject commit af65bd23e69a3a5fc1a39eb47733191b7110bb1e

@ -0,0 +1 @@
Subproject commit 8ad4044203b9f0a64f238445734fb874936fdc80

1
.oldvim/vim/bundle/ag Submodule

@ -0,0 +1 @@
Subproject commit 994c27dd8f237573208548e7480e39b24ccbbfba

@ -0,0 +1 @@
Subproject commit bd07a75d05d2dc47b670cb7d925fef38322d1e19

@ -0,0 +1 @@
Subproject commit 3293c5870fabb3c1775618cedf0684e4a0cc4ab8

@ -0,0 +1 @@
Subproject commit c3882ef5b087427e5c2e2f5fbe8f268ee02a2f3a

@ -0,0 +1 @@
Subproject commit 0d2bd483283346629cb8e34822114276792f4fa9

@ -0,0 +1 @@
Subproject commit ee550a7b2b47010fda7e5568dbffebd986ead080

@ -0,0 +1 @@
Subproject commit 0c834e58e81db2e2209d9df8e22c8a67772f2b3d

@ -0,0 +1 @@
Subproject commit ad63ab013f1aa9d00057fe166f45d12855b124b8

@ -0,0 +1 @@
Subproject commit 5f70ae6025e951f0154e3940d123138adffa4c88

View file

@ -0,0 +1,217 @@
" Vim color file
" Name: inkpot.vim
" Maintainer: Ciaran McCreesh <ciaran.mccreesh@googlemail.com>
" Homepage: http://github.com/ciaranm/inkpot/
"
" This should work in the GUI, rxvt-unicode (88 colour mode) and xterm (256
" colour mode). It won't work in 8/16 colour terminals.
"
" To use a black background, :let g:inkpot_black_background = 1
set background=dark
hi clear
if exists("syntax_on")
syntax reset
endif
let colors_name = "inkpot"
" map a urxvt cube number to an xterm-256 cube number
fun! <SID>M(a)
return strpart("0135", a:a, 1) + 0
endfun
" map a urxvt colour to an xterm-256 colour
fun! <SID>X(a)
if &t_Co == 88
return a:a
else
if a:a == 8
return 237
elseif a:a < 16
return a:a
elseif a:a > 79
return 232 + (3 * (a:a - 80))
else
let l:b = a:a - 16
let l:x = l:b % 4
let l:y = (l:b / 4) % 4
let l:z = (l:b / 16)
return 16 + <SID>M(l:x) + (6 * <SID>M(l:y)) + (36 * <SID>M(l:z))
endif
endif
endfun
if ! exists("g:inkpot_black_background")
let g:inkpot_black_background = 0
endif
if has("gui_running")
if ! g:inkpot_black_background
hi Normal gui=NONE guifg=#cfbfad guibg=#1e1e27
else
hi Normal gui=NONE guifg=#cfbfad guibg=#000000
endif
hi CursorLine guibg=#2e2e37
hi CursorColumn guibg=#2e2e37
hi IncSearch gui=BOLD guifg=#303030 guibg=#cd8b60
hi Search gui=NONE guifg=#303030 guibg=#ad7b57
hi ErrorMsg gui=BOLD guifg=#ffffff guibg=#ce4e4e
hi WarningMsg gui=BOLD guifg=#ffffff guibg=#ce8e4e
hi ModeMsg gui=BOLD guifg=#7e7eae guibg=NONE
hi MoreMsg gui=BOLD guifg=#7e7eae guibg=NONE
hi Question gui=BOLD guifg=#ffcd00 guibg=NONE
hi StatusLine gui=BOLD guifg=#b9b9b9 guibg=#3e3e5e
hi User1 gui=BOLD guifg=#00ff8b guibg=#3e3e5e
hi User2 gui=BOLD guifg=#7070a0 guibg=#3e3e5e
hi StatusLineNC gui=NONE guifg=#b9b9b9 guibg=#3e3e5e
hi VertSplit gui=NONE guifg=#b9b9b9 guibg=#3e3e5e
hi WildMenu gui=BOLD guifg=#eeeeee guibg=#6e6eaf
hi MBENormal guifg=#cfbfad guibg=#2e2e3f
hi MBEChanged guifg=#eeeeee guibg=#2e2e3f
hi MBEVisibleNormal guifg=#cfcfcd guibg=#4e4e8f
hi MBEVisibleChanged guifg=#eeeeee guibg=#4e4e8f
hi DiffText gui=NONE guifg=#ffffcd guibg=#4a2a4a
hi DiffChange gui=NONE guifg=#ffffcd guibg=#306b8f
hi DiffDelete gui=NONE guifg=#ffffcd guibg=#6d3030
hi DiffAdd gui=NONE guifg=#ffffcd guibg=#306d30
hi Cursor gui=NONE guifg=#404040 guibg=#8b8bff
hi lCursor gui=NONE guifg=#404040 guibg=#8fff8b
hi CursorIM gui=NONE guifg=#404040 guibg=#8b8bff
hi Folded gui=NONE guifg=#cfcfcd guibg=#4b208f
hi FoldColumn gui=NONE guifg=#8b8bcd guibg=#2e2e2e
hi Directory gui=NONE guifg=#00ff8b guibg=NONE
hi LineNr gui=NONE guifg=#8b8bcd guibg=#2e2e2e
hi NonText gui=BOLD guifg=#8b8bcd guibg=NONE
hi SpecialKey gui=BOLD guifg=#ab60ed guibg=NONE
hi Title gui=BOLD guifg=#af4f4b guibg=NONE
hi Visual gui=NONE guifg=#eeeeee guibg=#4e4e8f
hi Comment gui=NONE guifg=#cd8b00 guibg=NONE
hi Constant gui=NONE guifg=#ffcd8b guibg=NONE
hi String gui=NONE guifg=#ffcd8b guibg=#404040
hi Error gui=NONE guifg=#ffffff guibg=#6e2e2e
hi Identifier gui=NONE guifg=#ff8bff guibg=NONE
hi Ignore gui=NONE
hi Number gui=NONE guifg=#f0ad6d guibg=NONE
hi PreProc gui=NONE guifg=#409090 guibg=NONE
hi Special gui=NONE guifg=#c080d0 guibg=NONE
hi SpecialChar gui=NONE guifg=#c080d0 guibg=#404040
hi Statement gui=NONE guifg=#808bed guibg=NONE
hi Todo gui=BOLD guifg=#303030 guibg=#d0a060
hi Type gui=NONE guifg=#ff8bff guibg=NONE
hi Underlined gui=BOLD guifg=#df9f2d guibg=NONE
hi TaglistTagName gui=BOLD guifg=#808bed guibg=NONE
hi perlSpecialMatch gui=NONE guifg=#c080d0 guibg=#404040
hi perlSpecialString gui=NONE guifg=#c080d0 guibg=#404040
hi cSpecialCharacter gui=NONE guifg=#c080d0 guibg=#404040
hi cFormat gui=NONE guifg=#c080d0 guibg=#404040
hi doxygenBrief gui=NONE guifg=#fdab60 guibg=NONE
hi doxygenParam gui=NONE guifg=#fdd090 guibg=NONE
hi doxygenPrev gui=NONE guifg=#fdd090 guibg=NONE
hi doxygenSmallSpecial gui=NONE guifg=#fdd090 guibg=NONE
hi doxygenSpecial gui=NONE guifg=#fdd090 guibg=NONE
hi doxygenComment gui=NONE guifg=#ad7b20 guibg=NONE
hi doxygenSpecial gui=NONE guifg=#fdab60 guibg=NONE
hi doxygenSpecialMultilineDesc gui=NONE guifg=#ad600b guibg=NONE
hi doxygenSpecialOnelineDesc gui=NONE guifg=#ad600b guibg=NONE
if v:version >= 700
hi Pmenu gui=NONE guifg=#eeeeee guibg=#4e4e8f
hi PmenuSel gui=BOLD guifg=#eeeeee guibg=#2e2e3f
hi PmenuSbar gui=BOLD guifg=#eeeeee guibg=#6e6eaf
hi PmenuThumb gui=BOLD guifg=#eeeeee guibg=#6e6eaf
hi SpellBad gui=undercurl guisp=#cc6666
hi SpellRare gui=undercurl guisp=#cc66cc
hi SpellLocal gui=undercurl guisp=#cccc66
hi SpellCap gui=undercurl guisp=#66cccc
hi MatchParen gui=NONE guifg=#cfbfad guibg=#4e4e8f
endif
else
if ! g:inkpot_black_background
"exec "hi Normal cterm=NONE ctermfg=" . <SID>X(79) . " ctermbg=" . <SID>X(80)
else
exec "hi Normal cterm=NONE ctermfg=" . <SID>X(79) . " ctermbg=" . <SID>X(16)
endif
exec "hi IncSearch cterm=BOLD ctermfg=" . <SID>X(80) . " ctermbg=" . <SID>X(73)
exec "hi Search cterm=NONE ctermfg=" . <SID>X(80) . " ctermbg=" . <SID>X(52)
exec "hi ErrorMsg cterm=BOLD ctermfg=" . <SID>X(16) . " ctermbg=" . <SID>X(48)
exec "hi WarningMsg cterm=BOLD ctermfg=" . <SID>X(16) . " ctermbg=" . <SID>X(68)
exec "hi ModeMsg cterm=BOLD ctermfg=" . <SID>X(38) . " ctermbg=" . "NONE"
exec "hi MoreMsg cterm=BOLD ctermfg=" . <SID>X(38) . " ctermbg=" . "NONE"
exec "hi Question cterm=BOLD ctermfg=" . <SID>X(52) . " ctermbg=" . "NONE"
exec "hi StatusLine cterm=BOLD ctermfg=" . <SID>X(85) . " ctermbg=" . <SID>X(81)
exec "hi User1 cterm=BOLD ctermfg=" . <SID>X(28) . " ctermbg=" . <SID>X(81)
exec "hi User2 cterm=BOLD ctermfg=" . <SID>X(39) . " ctermbg=" . <SID>X(81)
exec "hi StatusLineNC cterm=NONE ctermfg=" . <SID>X(84) . " ctermbg=" . <SID>X(81)
exec "hi VertSplit cterm=NONE ctermfg=" . <SID>X(84) . " ctermbg=" . <SID>X(81)
exec "hi WildMenu cterm=BOLD ctermfg=" . <SID>X(87) . " ctermbg=" . <SID>X(38)
exec "hi MBENormal ctermfg=" . <SID>X(85) . " ctermbg=" . <SID>X(81)
exec "hi MBEChanged ctermfg=" . <SID>X(87) . " ctermbg=" . <SID>X(81)
exec "hi MBEVisibleNormal ctermfg=" . <SID>X(85) . " ctermbg=" . <SID>X(82)
exec "hi MBEVisibleChanged ctermfg=" . <SID>X(87) . " ctermbg=" . <SID>X(82)
exec "hi DiffText cterm=NONE ctermfg=" . <SID>X(79) . " ctermbg=" . <SID>X(34)
exec "hi DiffChange cterm=NONE ctermfg=" . <SID>X(79) . " ctermbg=" . <SID>X(17)
exec "hi DiffDelete cterm=NONE ctermfg=" . <SID>X(79) . " ctermbg=" . <SID>X(32)
exec "hi DiffAdd cterm=NONE ctermfg=" . <SID>X(79) . " ctermbg=" . <SID>X(20)
exec "hi Folded cterm=NONE ctermfg=" . <SID>X(79) . " ctermbg=" . <SID>X(35)
exec "hi FoldColumn cterm=NONE ctermfg=" . <SID>X(39) . " ctermbg=" . <SID>X(80)
exec "hi Directory cterm=NONE ctermfg=" . <SID>X(28) . " ctermbg=" . "NONE"
exec "hi LineNr cterm=NONE ctermfg=" . <SID>X(39) . " ctermbg=" . <SID>X(80)
exec "hi NonText cterm=BOLD ctermfg=" . <SID>X(39) . " ctermbg=" . "NONE"
exec "hi SpecialKey cterm=BOLD ctermfg=" . <SID>X(55) . " ctermbg=" . "NONE"
exec "hi Title cterm=BOLD ctermfg=" . <SID>X(48) . " ctermbg=" . "NONE"
exec "hi Visual cterm=NONE ctermfg=" . <SID>X(79) . " ctermbg=" . <SID>X(38)
exec "hi Comment cterm=NONE ctermfg=" . <SID>X(52) . " ctermbg=" . "NONE"
exec "hi Constant cterm=NONE ctermfg=" . <SID>X(73) . " ctermbg=" . "NONE"
exec "hi String cterm=NONE ctermfg=" . <SID>X(73) . " ctermbg=" . <SID>X(81)
exec "hi Error cterm=NONE ctermfg=" . <SID>X(79) . " ctermbg=" . <SID>X(32)
exec "hi Identifier cterm=NONE ctermfg=" . <SID>X(53) . " ctermbg=" . "NONE"
exec "hi Ignore cterm=NONE"
exec "hi Number cterm=NONE ctermfg=" . <SID>X(69) . " ctermbg=" . "NONE"
exec "hi PreProc cterm=NONE ctermfg=" . <SID>X(25) . " ctermbg=" . "NONE"
exec "hi Special cterm=NONE ctermfg=" . <SID>X(55) . " ctermbg=" . "NONE"
exec "hi SpecialChar cterm=NONE ctermfg=" . <SID>X(55) . " ctermbg=" . <SID>X(81)
exec "hi Statement cterm=NONE ctermfg=" . <SID>X(27) . " ctermbg=" . "NONE"
exec "hi Todo cterm=BOLD ctermfg=" . <SID>X(16) . " ctermbg=" . <SID>X(57)
exec "hi Type cterm=NONE ctermfg=" . <SID>X(71) . " ctermbg=" . "NONE"
exec "hi Underlined cterm=BOLD ctermfg=" . <SID>X(77) . " ctermbg=" . "NONE"
exec "hi TaglistTagName cterm=BOLD ctermfg=" . <SID>X(39) . " ctermbg=" . "NONE"
if v:version >= 700
exec "hi Pmenu cterm=NONE ctermfg=" . <SID>X(87) . " ctermbg=" . <SID>X(82)
exec "hi PmenuSel cterm=BOLD ctermfg=" . <SID>X(87) . " ctermbg=" . <SID>X(38)
exec "hi PmenuSbar cterm=BOLD ctermfg=" . <SID>X(87) . " ctermbg=" . <SID>X(39)
exec "hi PmenuThumb cterm=BOLD ctermfg=" . <SID>X(87) . " ctermbg=" . <SID>X(39)
exec "hi SpellBad cterm=NONE ctermbg=" . <SID>X(32)
exec "hi SpellRare cterm=NONE ctermbg=" . <SID>X(33)
exec "hi SpellLocal cterm=NONE ctermbg=" . <SID>X(36)
exec "hi SpellCap cterm=NONE ctermbg=" . <SID>X(21)
exec "hi MatchParen cterm=NONE ctermbg=" . <SID>X(14) . "ctermfg=" . <SID>X(25)
endif
endif
" vim: set et :

View file

@ -0,0 +1,220 @@
" ir_black color scheme
" More at: http://blog.infinitered.com/entries/show/8
" ********************************************************************************
" Standard colors used in all ir_black themes:
" Note, x:x:x are RGB values
"
" normal: #f6f3e8
"
" string: #A8FF60 168:255:96
" string inner (punc, code, etc): #00A0A0 0:160:160
" number: #FF73FD 255:115:253
" comments: #7C7C7C 124:124:124
" keywords: #96CBFE 150:203:254
" operators: white
" class: #FFFFB6 255:255:182
" method declaration name: #FFD2A7 255:210:167
" regular expression: #E9C062 233:192:98
" regexp alternate: #FF8000 255:128:0
" regexp alternate 2: #B18A3D 177:138:61
" variable: #C6C5FE 198:197:254
"
" Misc colors:
" red color (used for whatever): #FF6C60 255:108:96
" light red: #FFB6B0 255:182:176
"
" brown: #E18964 good for special
"
" lightpurpleish: #FFCCFF
"
" Interface colors:
" background color: black
" cursor (where underscore is used): #FFA560 255:165:96
" cursor (where block is used): white
" visual selection: #1D1E2C
" current line: #151515 21:21:21
" search selection: #07281C 7:40:28
" line number: #3D3D3D 61:61:61
" ********************************************************************************
" The following are the preferred 16 colors for your terminal
" Colors Bright Colors
" Black #4E4E4E #7C7C7C
" Red #FF6C60 #FFB6B0
" Green #A8FF60 #CEFFAB
" Yellow #FFFFB6 #FFFFCB
" Blue #96CBFE #FFFFCB
" Magenta #FF73FD #FF9CFE
" Cyan #C6C5FE #DFDFFE
" White #EEEEEE #FFFFFF
" ********************************************************************************
set background=dark
hi clear
if exists("syntax_on")
syntax reset
endif
let colors_name = "ir_black"
"hi Example guifg=NONE guibg=NONE gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE
" General colors
hi Normal guifg=#f6f3e8 guibg=black gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE
hi NonText guifg=#070707 guibg=black gui=NONE ctermfg=black ctermbg=NONE cterm=NONE
hi Cursor guifg=black guibg=white gui=NONE ctermfg=black ctermbg=white cterm=reverse
hi LineNr guifg=#3D3D3D guibg=black gui=NONE ctermfg=darkgray ctermbg=NONE cterm=NONE
hi VertSplit guifg=#202020 guibg=#202020 gui=NONE ctermfg=darkgray ctermbg=darkgray cterm=NONE
hi StatusLine guifg=#202020 guibg=#CCCCCC gui=italic ctermfg=white ctermbg=darkgray cterm=NONE
hi StatusLineNC guifg=#CCCCCC guibg=#202020 gui=NONE ctermfg=blue ctermbg=darkgray cterm=NONE
hi Folded guifg=#a0a8b0 guibg=#384048 gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE
hi FoldColumn guifg=#a0a8b0 guibg=#384048 gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE
hi Title guifg=#f6f3e8 guibg=NONE gui=bold ctermfg=NONE ctermbg=NONE cterm=NONE
hi Visual guifg=NONE guibg=#262D51 gui=NONE ctermfg=NONE ctermbg=darkgray cterm=NONE
hi SpecialKey guifg=#808080 guibg=#343434 gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE
hi WildMenu guifg=green guibg=yellow gui=NONE ctermfg=black ctermbg=yellow cterm=NONE
hi PmenuSbar guifg=black guibg=white gui=NONE ctermfg=black ctermbg=white cterm=NONE
"hi Ignore guifg=gray guibg=black gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE
hi Error guifg=NONE guibg=NONE gui=undercurl ctermfg=white ctermbg=red cterm=NONE guisp=#FF6C60 " undercurl color
hi ErrorMsg guifg=white guibg=#FF6C60 gui=BOLD ctermfg=white ctermbg=red cterm=NONE
hi WarningMsg guifg=white guibg=#FF6C60 gui=BOLD ctermfg=white ctermbg=red cterm=NONE
" Message displayed in lower left, such as --INSERT--
hi ModeMsg guifg=black guibg=#C6C5FE gui=BOLD ctermfg=black ctermbg=cyan cterm=BOLD
" Diff colors
hi DiffAdd guifg=NONE guibg=#26512D gui=NONE ctermfg=NONE ctermbg=darkgray cterm=NONE
hi DiffChange guifg=NONE guibg=#262D51 gui=NONE ctermfg=NONE ctermbg=darkgray cterm=NONE
hi DiffText guifg=NONE guibg=#384048 gui=NONE ctermfg=NONE ctermbg=darkgray cterm=NONE
hi DiffDelete guifg=NONE guibg=#512D26 gui=NONE ctermfg=NONE ctermbg=darkgray cterm=NONE
if version >= 700 " Vim 7.x specific colors
hi Cursor guifg=NONE guibg=NONE gui=reverse ctermfg=NONE ctermbg=NONE cterm=BOLD
hi CursorLine guifg=NONE guibg=#121212 gui=NONE ctermfg=NONE ctermbg=NONE cterm=BOLD
hi CursorColumn guifg=NONE guibg=#121212 gui=NONE ctermfg=NONE ctermbg=NONE cterm=BOLD
hi MatchParen guifg=#f6f3e8 guibg=#857b6f gui=BOLD ctermfg=white ctermbg=darkgray cterm=NONE
hi Pmenu guifg=#f6f3e8 guibg=#444444 gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE
hi PmenuSel guifg=#000000 guibg=#cae682 gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE
hi Search guifg=NONE guibg=NONE gui=underline ctermfg=NONE ctermbg=NONE cterm=underline
endif
" Syntax highlighting
hi Comment guifg=#7C7C7C guibg=NONE gui=NONE ctermfg=darkgray ctermbg=NONE cterm=NONE
hi String guifg=#A8FF60 guibg=NONE gui=NONE ctermfg=green ctermbg=NONE cterm=NONE
hi Number guifg=#FF73FD guibg=NONE gui=NONE ctermfg=magenta ctermbg=NONE cterm=NONE
hi Keyword guifg=#96CBFE guibg=NONE gui=NONE ctermfg=blue ctermbg=NONE cterm=NONE
hi PreProc guifg=#96CBFE guibg=NONE gui=NONE ctermfg=blue ctermbg=NONE cterm=NONE
hi Conditional guifg=#6699CC guibg=NONE gui=NONE ctermfg=blue ctermbg=NONE cterm=NONE " if else end
hi Todo guifg=#8f8f8f guibg=NONE gui=NONE ctermfg=red ctermbg=NONE cterm=NONE
hi Constant guifg=#99CC99 guibg=NONE gui=NONE ctermfg=cyan ctermbg=NONE cterm=NONE
hi Identifier guifg=#C6C5FE guibg=NONE gui=NONE ctermfg=cyan ctermbg=NONE cterm=NONE
hi Function guifg=#FFD2A7 guibg=NONE gui=NONE ctermfg=brown ctermbg=NONE cterm=NONE
hi Type guifg=#FFFFB6 guibg=NONE gui=NONE ctermfg=yellow ctermbg=NONE cterm=NONE
hi Statement guifg=#6699CC guibg=NONE gui=NONE ctermfg=lightblue ctermbg=NONE cterm=NONE
hi Special guifg=#E18964 guibg=NONE gui=NONE ctermfg=white ctermbg=NONE cterm=NONE
hi Delimiter guifg=#00A0A0 guibg=NONE gui=NONE ctermfg=cyan ctermbg=NONE cterm=NONE
hi Operator guifg=white guibg=NONE gui=NONE ctermfg=white ctermbg=NONE cterm=NONE
hi link Character Constant
hi link Boolean Constant
hi link Float Number
hi link Repeat Statement
hi link Label Statement
hi link Exception Statement
hi link Include PreProc
hi link Define PreProc
hi link Macro PreProc
hi link PreCondit PreProc
hi link StorageClass Type
hi link Structure Type
hi link Typedef Type
hi link Tag Special
hi link SpecialChar Special
hi link SpecialComment Special
hi link Debug Special
" Special for Ruby
hi rubyRegexp guifg=#B18A3D guibg=NONE gui=NONE ctermfg=brown ctermbg=NONE cterm=NONE
hi rubyRegexpDelimiter guifg=#FF8000 guibg=NONE gui=NONE ctermfg=brown ctermbg=NONE cterm=NONE
hi rubyEscape guifg=white guibg=NONE gui=NONE ctermfg=cyan ctermbg=NONE cterm=NONE
hi rubyInterpolationDelimiter guifg=#00A0A0 guibg=NONE gui=NONE ctermfg=blue ctermbg=NONE cterm=NONE
hi rubyControl guifg=#6699CC guibg=NONE gui=NONE ctermfg=blue ctermbg=NONE cterm=NONE "and break, etc
"hi rubyGlobalVariable guifg=#FFCCFF guibg=NONE gui=NONE ctermfg=lightblue ctermbg=NONE cterm=NONE "yield
hi rubyStringDelimiter guifg=#336633 guibg=NONE gui=NONE ctermfg=lightgreen ctermbg=NONE cterm=NONE
"rubyInclude
"rubySharpBang
"rubyAccess
"rubyPredefinedVariable
"rubyBoolean
"rubyClassVariable
"rubyBeginEnd
"rubyRepeatModifier
"hi link rubyArrayDelimiter Special " [ , , ]
"rubyCurlyBlock { , , }
hi link rubyClass Keyword
hi link rubyModule Keyword
hi link rubyKeyword Keyword
hi link rubyOperator Operator
hi link rubyIdentifier Identifier
hi link rubyInstanceVariable Identifier
hi link rubyGlobalVariable Identifier
hi link rubyClassVariable Identifier
hi link rubyConstant Type
" Special for Java
" hi link javaClassDecl Type
hi link javaScopeDecl Identifier
hi link javaCommentTitle javaDocSeeTag
hi link javaDocTags javaDocSeeTag
hi link javaDocParam javaDocSeeTag
hi link javaDocSeeTagParam javaDocSeeTag
hi javaDocSeeTag guifg=#CCCCCC guibg=NONE gui=NONE ctermfg=darkgray ctermbg=NONE cterm=NONE
hi javaDocSeeTag guifg=#CCCCCC guibg=NONE gui=NONE ctermfg=darkgray ctermbg=NONE cterm=NONE
"hi javaClassDecl guifg=#CCFFCC guibg=NONE gui=NONE ctermfg=white ctermbg=NONE cterm=NONE
" Special for XML
hi link xmlTag Keyword
hi link xmlTagName Conditional
hi link xmlEndTag Identifier
" Special for HTML
hi link htmlTag Keyword
hi link htmlTagName Conditional
hi link htmlEndTag Identifier
" Special for Javascript
hi link javaScriptNumber Number
" Special for Python
"hi link pythonEscape Keyword
" Special for CSharp
hi link csXmlTag Keyword
" Special for PHP

View file

@ -0,0 +1,112 @@
" ----------------------------------------------------------------------------------------------------------------------------------
" Filename: relaxedgreen.vim
" Last Modified: 13 Feb 2007 09:57:24 PM by Dave V
" Maintainer: Dave Vehrs (dvehrs at gmail.com)
" Copyright: 2002,2003,2004,2005,2006,2007 Dave Vehrs
" This script is free software; you can redistribute it and/or
" modify it under the terms of the GNU General Public License as
" published by the Free Software Foundation; either version 2 of
" the License, or (at your option) any later version.
" Description: Vim colorscheme file.
" Install: Place this file in the users colors directory (~/.vim/colors) or
" in the shared colors directory (/usr/shared/vim/vim<version>/colors/),
" then load it with :colorscheme relaxedgreen
" ----------------------------------------------------------------------------------------------------------------------------------
set background=dark
hi clear
if exists("syntax_on")
syntax reset
endif
let g:colors_name = "relaxedgreen"
highlight Cursor term=reverse ctermfg=green ctermbg=blue guifg=#000000 guibg=#559955
highlight CursorIM term=reverse ctermfg=black ctermbg=darkgreen guifg=#000000 guibg=#336633
highlight CursorColumn term=none ctermbg=darkred guibg=#663333
highlight CursorLine term=none ctermbg=darkblue guibg=#333366
highlight Comment term=italic ctermfg=darkcyan ctermbg=black guifg=#00a594
highlight Constant term=underline ctermfg=blue guifg=#0099dd
highlight Debug term=bold ctermfg=red ctermbg=black guifg=#dc0000 guibg=#000000
highlight DiffAdd term=reverse ctermfg=black ctermbg=cyan guifg=#000000 guibg=#007200
highlight DiffChange term=underline cterm=reverse ctermfg=darkgreen ctermbg=black guifg=#000000 guibg=#006700
highlight DiffDelete term=standout ctermfg=black ctermbg=cyan guifg=#000000 guibg=#007200
highlight DiffText term=bold ctermfg=green ctermbg=black guifg=#00ac00 guibg=#000000
highlight Directory term=underline ctermfg=green ctermbg=black guifg=#336633 guibg=#000000
highlight Error term=reverse,bold ctermfg=black ctermbg=red guifg=#000000 guibg=#dc0000
highlight ErrorMsg term=reverse,bold ctermfg=white ctermbg=red guifg=#ffffff guibg=#dc0000
highlight Folded ctermfg=darkgreen ctermbg=black guifg=#20de20 guibg=#000000
highlight FoldColumn ctermfg=darkgreen ctermbg=black guifg=#20de20 guibg=#000000
highlight Function term=standout ctermfg=darkgreen guifg=#22bb22
highlight Identifier term=underline ctermfg=darkcyan gui=underline guifg=#008800
highlight Ignore ctermfg=lightgreen guifg=#33bb33
highlight IncSearch term=reverse ctermfg=black ctermbg=darkgreen guifg=#000000 guibg=#336633
highlight LineNr term=bold ctermfg=green guifg=#00ff00
highlight MatchParen term=bold ctermbg=green guifg=#009900
highlight ModeMsg term=bold cterm=bold gui=bold
highlight MoreMsg term=bold cterm=bold gui=bold
highlight NonText ctermfg=brown guifg=#b26818
highlight Normal ctermfg=gray ctermbg=black guifg=#aaaaaa guibg=#000000
highlight Pmenu term=reverse ctermfg=black ctermbg=green guifg=#000000 guibg=#337733
highlight PmenuSel term=bold ctermfg=black ctermbg=gray guifg=#000000 guibg=#999999
highlight PmenuSbar term=reverse ctermfg=black ctermbg=green guifg=#000000 guibg=#337733
highlight PmenuThumb term=reverse ctermfg=gray ctermbg=black guifg=#999999 guibg=#000000
highlight PreProc term=standout ctermfg=darkgreen guifg=#22bb22
highlight Question term=standout ctermfg=red guifg=#ff0000
highlight Search term=reverse ctermfg=black ctermbg=darkgreen guifg=#000000 guibg=#228822
highlight SignColumn ctermfg=darkgreen guifg=#20de20 guibg=#000000
highlight Special term=bold ctermfg=green guifg=#00ff00
highlight SpecialKey term=bold ctermfg=green guifg=#00ff00
highlight SpellBad term=reverse cterm=underline ctermfg=red ctermbg=black gui=undercurl guisp=#ff0000
highlight SpellCap term=reverse cterm=underline ctermfg=yellow ctermbg=black gui=undercurl guisp=#00ffff
highlight SpellLocal term=reverse cterm=underline ctermfg=blue ctermbg=black gui=undercurl guisp=#0000ff
highlight SpellRare term=reverse cterm=underline ctermfg=darkgreen ctermbg=black gui=undercurl guisp=#00ff00
highlight Statement term=standout ctermfg=darkred guifg=#ac0000
highlight StatusLine term=reverse ctermfg=darkgreen ctermbg=black gui=none guibg=#228822 guifg=#000000
highlight StatusLineNC term=reverse ctermfg=darkgreen ctermbg=blue gui=none guibg=#336633 guifg=#000000
highlight TabLine term=reverse cterm=reverse ctermfg=black ctermbg=green guibg=#222222 guifg=#228822
highlight TabLineFill term=reverse cterm=reverse ctermfg=green ctermbg=black guibg=#222222 guifg=#226622
highlight TabLineSel ctermfg=black ctermbg=green guibg=#228822 guifg=#222222
highlight Title term=reverse ctermfg=black ctermbg=green guifg=#000000 guibg=#00ff00
highlight Todo term=reverse cterm=reverse ctermfg=darkgreen ctermbg=black guibg=#336633 guifg=#000000
highlight Type term=standout ctermfg=green guifg=#559955
highlight Visual term=reverse cterm=reverse ctermfg=darkgreen guifg=#000000 guibg=#336633
highlight VisualNOS term=reverse,bold cterm=reverse ctermbg=darkgreen guifg=#000000 guibg=#228822
highlight VertSplit term=reverse ctermfg=darkgreen guifg=#336633
highlight User1 term=standout cterm=bold ctermbg=darkgreen ctermfg=red gui=bold guibg=#228822 guifg=#FF0000
highlight WarningMsg term=reverse ctermfg=black ctermbg=yellow guifg=#000000 guibg=#007a7a
highlight WildMenu term=reverse ctermfg=blue ctermbg=darkgreen guifg=#000099 guibg=#00ac00
" ----------------------------------------------------------------------------------------------------------------------------------
" Common groups that link to other highlight definitions.
highlight link Character Constant
highlight link Number Constant
highlight link Boolean Constant
highlight link String Constant
highlight link Operator LineNr
highlight link Float Number
highlight link Define PreProc
highlight link Include PreProc
highlight link Macro PreProc
highlight link PreCondit PreProc
highlight link Repeat Question
highlight link Conditional Repeat
highlight link Delimiter Special
highlight link SpecialChar Special
highlight link SpecialComment Special
highlight link Tag Special
highlight link Exception Statement
highlight link Keyword Statement
highlight link Label Statement
highlight link StorageClass Type
highlight link Structure Type
highlight link Typedef Type
" ----------------------------------------------------------------------------------------------------------------------------------
" vim:tw=132:ts=4:sw=4

View file

@ -0,0 +1,95 @@
" ----------------------------------------------------------------------------
" Vim color file
" Maintainer: John-Paul Bader <contact@smyck.org>
" Last Change: 2012 April
" License: Beer Ware
" ----------------------------------------------------------------------------
" Reset Highlighting
hi clear
if exists("syntax_on")
syntax reset
endif
set background=dark
set linespace=3
let g:colors_name = "smyck"
hi Normal cterm=none ctermbg=none ctermfg=15 gui=none guibg=#282828 guifg=#F7F7F7
hi LineNr cterm=none ctermbg=none ctermfg=8 gui=none guibg=#282828 guifg=#8F8F8F
hi StatusLine cterm=none ctermbg=8 ctermfg=15 gui=none guibg=#5D5D5D guifg=#FBFBFB
hi StatusLineNC cterm=none ctermbg=15 ctermfg=8 gui=none guibg=#5D5D5D guifg=#FBFBFB
hi Search cterm=none ctermbg=6 ctermfg=15 gui=none guibg=#2EB5C1 guifg=#F7F7F7
hi IncSearch cterm=none ctermbg=3 ctermfg=8 gui=none guibg=#F6DC69 guifg=#8F8F8F
hi ColumnMargin cterm=none ctermbg=0 gui=none guibg=#000000
hi Error cterm=none ctermbg=1 ctermfg=15 gui=none guifg=#F7F7F7
hi ErrorMsg cterm=none ctermbg=1 ctermfg=15 gui=none guifg=#F7F7F7
hi Folded cterm=none ctermbg=8 ctermfg=2 gui=none guibg=#3B3B3B guifg=#90AB41
hi FoldColumn cterm=none ctermbg=8 ctermfg=2 gui=none guibg=#3B3B3B guifg=#90AB41
hi NonText cterm=bold ctermbg=none ctermfg=8 gui=bold guifg=#8F8F8F
hi ModeMsg cterm=bold ctermbg=none ctermfg=10 gui=none
hi Pmenu cterm=none ctermbg=8 ctermfg=15 gui=none guibg=#8F8F8F guifg=#F7F7F7
hi PmenuSel cterm=none ctermbg=15 ctermfg=8 gui=none guibg=#F7F7F7 guifg=#8F8F8F
hi PmenuSbar cterm=none ctermbg=15 ctermfg=8 gui=none guibg=#F7F7F7 guifg=#8F8F8F
hi SpellBad cterm=none ctermbg=1 ctermfg=15 gui=none guifg=#F7F7F7
hi SpellCap cterm=none ctermbg=4 ctermfg=15 gui=none guifg=#F7F7F7
hi SpellRare cterm=none ctermbg=4 ctermfg=15 gui=none guifg=#F7F7F7
hi SpellLocal cterm=none ctermbg=4 ctermfg=15 gui=none guifg=#F7F7F7
hi Visual cterm=none ctermbg=15 ctermfg=8 gui=none guibg=#F7F7F7 guifg=#8F8F8F
hi Directory cterm=none ctermbg=none ctermfg=4 gui=none guibg=#242424 guifg=#88CCE7
hi SpecialKey cterm=none ctermbg=none ctermfg=8 gui=none guifg=#8F8F8F
hi DiffAdd cterm=bold ctermbg=2 ctermfg=15
hi DiffChange cterm=bold ctermbg=4 ctermfg=15
hi DiffDelete cterm=bold ctermbg=1 ctermfg=15
hi DiffText cterm=bold ctermbg=3 ctermfg=8
hi MatchParen cterm=none ctermbg=6 ctermfg=15 gui=none guibg=#2EB5C1 guifg=#F7F7F7
hi CursorLine cterm=none ctermbg=238 ctermfg=none gui=none guibg=#424242
hi CursorColumn cterm=none ctermbg=238 ctermfg=none gui=none guibg=#424242
hi Title cterm=none ctermbg=none ctermfg=4 gui=none guifg=#88CCE7
" ----------------------------------------------------------------------------
" Syntax Highlighting
" ----------------------------------------------------------------------------
hi Keyword cterm=none ctermbg=none ctermfg=10 gui=none guifg=#D1FA71
hi Comment cterm=none ctermbg=none ctermfg=8 gui=none guifg=#8F8F8F
hi Delimiter cterm=none ctermbg=none ctermfg=15 gui=none guifg=#F7F7F7
hi Identifier cterm=none ctermbg=none ctermfg=12 gui=none guifg=#96D9F1
hi Structure cterm=none ctermbg=none ctermfg=12 gui=none guifg=#9DEEF2
hi Ignore cterm=none ctermbg=none ctermfg=8 gui=none guifg=bg
hi Constant cterm=none ctermbg=none ctermfg=12 gui=none guifg=#96D9F1
hi PreProc cterm=none ctermbg=none ctermfg=10 gui=none guifg=#D1FA71
hi Type cterm=none ctermbg=none ctermfg=12 gui=none guifg=#96D9F1
hi Statement cterm=none ctermbg=none ctermfg=10 gui=none guifg=#D1FA71
hi Special cterm=none ctermbg=none ctermfg=6 gui=none guifg=#d7d7d7
hi String cterm=none ctermbg=none ctermfg=3 gui=none guifg=#F6DC69
hi Number cterm=none ctermbg=none ctermfg=3 gui=none guifg=#F6DC69
hi Underlined cterm=none ctermbg=none ctermfg=magenta gui=underline guibg=#272727
hi Symbol cterm=none ctermbg=none ctermfg=9 gui=none guifg=#FAB1AB
hi Method cterm=none ctermbg=none ctermfg=15 gui=none guifg=#F7F7F7
hi Interpolation cterm=none ctermbg=none ctermfg=6 gui=none guifg=#2EB5C1
" Erlang
hi link erlangAtom Keyword
hi link erlangBitType Keyword
hi link rubyBeginend Keyword
hi link rubyClass Keyword
hi link rubyModule Keyword
hi link rubyKeyword Keyword
hi link rubyOperator Method
hi link rubyIdentifier Keyword
hi link rubyClassVariable Symbol
hi link rubyInstanceVariable Constant
hi link rubyGlobalVariable Constant
hi link rubyClassVariable Method
hi link rubyConstant Constant
hi link rubySymbol Symbol
hi link rubyFunction Constant
hi link rubyControl Keyword
hi link rubyConditional Keyword
hi link rubyInterpolation Interpolation
hi link rubyInterpolationDelimiter Interpolation
hi link rubyRailsMethod Method

17
.oldvim/vim/filetype.vim Normal file
View file

@ -0,0 +1,17 @@
" detect puppet filetypes
if exists("did_load_filetypes")
finish
endif
augroup filetypedetect
au! BufRead,BufNewFile *.pp setfiletype puppet
"au! BufNewFile,BufRead *.rhtml set syn=eruby
"au! BufNewFile,BufRead *.haml setfiletype haml
"au! BufNewFile,BufRead *.rhtml setfiletype rhtml
au! BufNewFile,BufRead Vagrantfile setfiletype ruby
au! BufNewFile,BufRead *.rhtml setfiletype eruby
au! BufNewFile,BufRead *.s setfiletype asmx86
au! BufNewFile,BufRead *.rl setfiletype ragel
au! BufRead,BufNewFile *.ijs,*.ijt,*.ijp,*.ijx setfiletype j
augroup END

1
.oldvim/vim/init.vim Symbolic link
View file

@ -0,0 +1 @@
/Users/hunner/.vimrc

View file

@ -0,0 +1,110 @@
" Mapping the unified APL keyboard to emit the apl385 unicode characters
" Original Author: Peter Keller <psilord@cs.wisc.edu>
" Maintainer: Peter Keller <psilord@cs.wisc.edu>
" Last Changed: 2008 Oct 23
" This file is under the BSD license.
let b:keymap_name = "uniapl385"
loadkeymap
" row 1 of keyboard, lowercase and uppercase
<M-`> <char-0x22c4> " {diamond}
<M-~> <char-0x235e> " {quotequad}
<M-1> <char-0x00a8> " {each}
<M-!> <char-0x2336> " {ibeam}
<M-2> <char-0x00af> " {negative}
<M-@> <char-0x236b> " {deltilde}
<M-3> <char-0x003c> " {lessthan}
<M-#> <char-0x2352> " {gradedown}
<M-4> <char-0x2264> " {lessthanequal}
<M-$> <char-0x234b> " {gradeup}
<M-5> <char-0x003d> " {equal}
<M-%> <char-0x233d> " {reverse}
<M-6> <char-0x2265> " {greaterorequal}
<M-^> <char-0x2349> " {transpose}
<M-7> <char-0x003e> " {morethan}
<M-&> <char-0x2296> " {rotatefirstaxis}
<M-8> <char-0x2260> " {notequalto}
<M-*> <char-0x235f> " {log}
<M-9> <char-0x2228> " {logicalor}
<M-(> <char-0x2371> " {aplnor}
<M-0> <char-0x005e> " {logicaland}
<M-)> <char-0x2372> " {aplnand}
<M--> <char-0x00d7> " {multiply}
<M-_> <char-0x0021> " {factorial}
<M-+> <char-0x2339> " {domino}
<M-=> <char-0x00f7> " {divide}
" row 2 of keyboard, lowercase and uppercase
<M-q> <char-0x003f> " {random}
<M-Q> <char-0x0051> " letter Q
<M-w> <char-0x2375> " {omega}
<M-W> <char-0x2364> " {hoot}
<M-e> <char-0x220a> " {membership}
<M-E> <char-0x2377> " {find}
<M-r> <char-0x2374> " {rho}
<M-R> <char-0x0052> " letter R
<M-t> <char-0x007e> " {tilde}
<M-T> <char-0x0054> " letter T
<M-y> <char-0x2191> " {take}
<M-Y> <char-0x2350> " {quadup}
<M-u> <char-0x2193> " {drop}
<M-U> <char-0x2357> " {quaddown}
<M-i> <char-0x2373> " {iota}
<M-I> <char-0x2378> " {iotaunderbar}
<M-o> <char-0x25cb> " {circle}
<M-O> <char-0x2337> " {squad}
<M-p> <char-0x002a> " {power}
<M-P> <char-0x0050> " letter P
<M-[> <char-0x2190> " {assign}
<M-{> <char-0x2347> " {quadleft}
<M-]> <char-0x2192> " {goto}
<M-}> <char-0x2348> " {quadright}
<M-\> <char-0x22a2> " {right tack}
<M-|> <char-0x22a3> " {left tack}
" row 3 of keyboard, lowercase and uppercase
<M-a> <char-0x237a> " {alpha}
<M-A> <char-0x0041> " letter A
<M-s> <char-0x2308> " {max}
<M-S> <char-0x0053> " letter S
<M-d> <char-0x230A> " {min}
<M-D> <char-0x0044> " letter D
<M-f> <char-0x005f> " {underbar}
<M-F> <char-0x0046> " letter F
<M-g> <char-0x2207> " {del}
<M-G> <char-0x0047> " letter G
<M-h> <char-0x2206> " {delta}
<M-H> <char-0x2359> " {deltaunderbar}
<M-j> <char-0x2218> " {jot}
<M-J> <char-0x233b> " {quadjot}
<M-k> <char-0x0027> " {quote}
<M-K> <char-0x2337> " {squad}
<M-l> <char-0x25af> " {quad}
<M-L> <char-0x2342> " {sandwich}
<M-;> <char-0x234e> " {execute}
<M-:> <char-0x2261> " {match}
<M-'> <char-0x2355> " {format}
<M-"> <char-0x2262> " {notmatch}
" row 4 of keyboard, lowercase and uppercase
<M-z> <char-0x2282> " {enclose}
<M-Z> <char-0x005a> " letter Z
<M-x> <char-0x2283> " {disclose}
<M-X> <char-0x0058> " letter X
<M-c> <char-0x2229> " {intersect}
<M-C> <char-0x0043> " letter C
<M-v> <char-0x222a> " {union}
<M-V> <char-0x0056> " letter V
<M-b> <char-0x22a5> " {decode}
<M-B> <char-0x0042> " letter B
<M-n> <char-0x22a4> " {encode}
<M-N> <char-0x004e> " letter N
<M-m> <char-0x007c> " {remainder}
<M-M> <char-0x004d> " letter M
<M-,> <char-0x235d> " {lamp}
<M-<> <char-0x236a> " {commabar}
<M-.> <char-0x2340> " {slopebar}
<M->> <char-0x2235> " {paw}
<M-/> <char-0x233f> " {slashbar}
<M-?> <char-0x003f> " {random}

Binary file not shown.

View file

@ -0,0 +1,595 @@
" Vim syntax file
" Hacked by Adam, from the 68000 asm syntax....
" x Language: Motorola 68000 Assembler
" x Maintainer: Steve Wall
" Last change: 2001 May 01
"
" This is incomplete. In particular, support for 68020 and
" up and 68851/68881 co-processors is partial or non-existant.
" Feel free to contribute...
"
" For version 5.x: Clear all syntax items
" For version 6.x: Quit when a syntax file was already loaded
if version < 600
syntax clear
elseif exists("b:current_syntax")
finish
endif
syn case ignore
" syn region asmx86Comment start="#\(\(\(include\)\|\(define\)\|\(if\)\|\(ifndef\)\|\(endif\)\|\(end\)\|\(ifdef\)\)\s\)\!" end="$"
syn region asmx86Commenthash start="#\(\(define\)\|\(if\(n\=\(def\)\)\=\)\|\(include\)\|\(error\)\|\(end\(if\)\=\)\)\!" end="$" contains=asmx86Todo
syn region asmx86Commenthash start="#" end="$" contains=asmx86Todo
syn match asmx86Operator "[-+*/]" " Must occur before Comments
syn match asmx86PreProc "^\s*#\s*\(\(if\(n\=\(def\)\)\=\)\|\(end\(if\)\=\)\|\(define\)\|\(error\)\|\(else\)\)\>"
syn region asmx86Commentcpp start="\s*#\s*if\s\+0\+\>" end="\s*#\s*endif\>" contains=asmx86Todo
syn region asmx86Commentcxx start="//" end="$" contains=asmx86Todo
syn region asmx86Commentc start="/\*" end="\*/" contains=asmx86Todo
" Preprocessor, basics:
" First make ALL things that are behind #'s and the endline as comments. Then
" boil out the stuff that is vaild, like #defines, and such.... It's
" kinda tough, since we're allowing two conflicting syntaxes. But when we
" consider that the "#" mechanism in the pre-processor isn't ever seen by the
" underlying language, it begins to show itself, on why it is so weird.
" There's going to be "#"'es left behind by the cpp, so we need to remember
" that the assembler will see those as commments. We provide this commenting
" Segment Registers --
syn match asmx86Reg "%[cdefgs]s"
" Partial list of register symbols
" General Purpose Registers --
"syn keyword asmx86Reg eax ax al ah
syn match asmx86Reg "%[abcd][xhl]"
syn match asmx86Reg "%e[abcd]x"
" syn keyword asmx86Reg ebx bx bl bh
" syn keyword asmx86Reg ecx cx cl ch
" syn keyword asmx86Reg edx dx dl dh
" "Special" Registers --
"syn keyword asmx86Reg ebp bp edi di esi si esp sp
syn match asmx86Reg "%[bs]p"
syn match asmx86Reg "%e[bs]p"
syn match asmx86Reg "%[ds]i"
syn match asmx86Reg "%e[ds]i"
" Protection, extra, and magic registers for all the OS-type fun stuff --
syn match asmx86Reg "%[cd]r[0-3]"
syn match asmx86Reg "%[td]r[3-7]"
" syn keyword asmx86Reg cr0 cr1 cr2 cr3
" syn keyword asmx86Reg tr3 tr4 tr5 tr6 tr7
" syn keyword asmx86Reg dr0 dr1 dr2 dr3 dr4 dr5 dr6 dr7
syn keyword asmx86Reg gdtr ldtr idtr tr msw pdbr pfla
" Page descriptor base register and page fault linear address
" MC68010
"syn keyword asmx86Reg vbr sfc sfcr dfc dfcr
" MC68020
"syn keyword asmx86Reg msp isp zpc cacr caar
"syn keyword asmx86Reg za0 za1 za2 za3 za4 za5 za6 za7
"syn keyword asmx86Reg zd0 zd1 zd2 zd3 zd4 zd5 zd6 zd7
" MC68030
"syn keyword asmx86Reg crp srp tc ac0 ac1 acusr tt0 tt1 mmusr
" MC68040
"syn keyword asmx86Reg dtt0 dtt1 itt0 itt1 urp
" MC68851 registers
"syn keyword asmx86Reg cal val scc crp srp drp tc ac psr pcsr
"syn keyword asmx86Reg bac0 bac1 bac2 bac3 bac4 bac5 bac6 bac7
"syn keyword asmx86Reg bad0 bad1 bad2 bad3 bad4 bad5 bad6 bad7
" MC68881/82 registers
"syn keyword asmx86Reg fp0 fp1 fp2 fp3 fp4 fp5 fp6 fp7
"syn keyword asmx86Reg control status iaddr fpcr fpsr fpiar
"Not sure if this is the case for x86......
" M68000 opcodes - order is important!
syn match asmx86Opcode "\<aa[asdm][bwl]\=\s"
syn match asmx86Opcode "\<ad[cd][bwl]\=\s"
syn match asmx86Opcode "\<and[bwl]\=\s"
syn match asmx86Opcode "\<arpl\s"
syn match asmx86Opcode_br "\<bound[lw]\=\s"
syn match asmx86Opcode "\<bs[rf][lw]\=\s"
syn match asmx86Opcode "\<bswap[lw]\=\s"
syn match asmx86Opcode "\<bt[rcs]\=[lw]\=\s"
syn match asmx86Opcode_br "\<call[f]\=\s"
syn match asmx86Opcode "\<cbw\s"
syn match asmx86Opcode "\<cwde\s"
syn match asmx86Opcode "\<cl\([cdi]\|\(ts\)\)\>"
syn match asmx86Opcode "\<cmc\s"
syn match asmx86Opcode "\<cmp\(xchg\)\=[bwl]\=\s"
syn match asmx86Opcode "\<cmps[bwdl]\=\>"
syn match asmx86Opcode "\<c\(\(wd\)\|\(dq\)\)\s"
syn match asmx86Opcode "\<da[sd]\=\s"
syn match asmx86Opcode "\<dec[bwl]\=\s"
syn match asmx86Opcode "\<div[bwl]\=\s"
syn match asmx86Opcode "\<enter[bwl]\=\s"
" Skipping all FPU instructions.....
syn match asmx86Opcode_br "\<hlt\>"
syn match asmx86Opcode "\<idiv[bwl]\=\s"
syn match asmx86Opcode "\<imul[bwl]\=\s"
syn match asmx86Opcode_io "\<in[bwl]\=\s"
syn match asmx86Opcode_io "\<ins[bwdl]\=\>"
syn match asmx86Opcode "\<inc[bwl]\=\s"
syn match asmx86Opcode_br "\<int\s"
syn match asmx86Opcode_br "\<int[o3]\>"
syn match asmx86Opcode "\<inv\(\(d\)\|\(lpg\)\)\s"
syn match asmx86Opcode_br "\<iretd\=\>"
"" Main x86 branch instructions...
syn match asmx86Opcode_br "\<j.\{,4}\s"
" This is, above, the hack. It will not show valid/invalid jcc opcodes, now...
" This will be fixed later, this is just to have working j???? working now....
syn match asmx86Opcode_br "\<l\=jmp[fblwd]\=\s"
syn match asmx86Opcode "\<lahf\s"
syn match asmx86Opcode "\<lar\s"
syn match asmx86Opcode_mv "\<lea[lw]\=\s"
syn match asmx86Opcode "\<leave\>"
syn match asmx86Opcode_mv "\<l[gil]dtl\=\s"
syn match asmx86Opcode_mv "\<l[defgs]s\s"
syn match asmx86Opcode_mv "\<lmsw\s"
syn match asmx86Opcode "\<lock\>"
syn match asmx86Opcode_mv "\<lods[lwdb]\=\>"
syn match asmx86Opcode_br "\<loopn\=[ez]\=\s"
syn match asmx86Opcode_mv "\<lsl\s"
syn match asmx86Opcode_mv "\<ltr\s"
syn match asmx86Opcode_mv "\<mov[bwl]\=\s"
syn match asmx86Opcode_mv "\<movs[lwdb]\=\>"
syn match asmx86Opcode_mv "\<movsx[bwl]\=\s"
syn match asmx86Opcode_mv "\<movzx[bwl]\=\s"
syn match asmx86Opcode "\<mul[bwl]\=\s"
syn match asmx86Opcode "\<neg[bwl]\=\s"
syn match asmx86Opcode "\<nop\>"
syn match asmx86Opcode "\<not[bwl]\=\s"
syn match asmx86Opcode "\<or[bwl]\=\s"
syn match asmx86Opcode_io "\<out[bwl]\=\s"
syn match asmx86Opcode_io "\<outs[dbwl]\=\>"
syn match asmx86Opcode_mv "\<pop[bwl]\=\s"
syn match asmx86Opcode_mv "\<pop[af][wld]\=\>"
syn match asmx86Opcode_mv "\<push[bwl]\=\s"
syn match asmx86Opcode_mv "\<push[af][wld]\=\>"
syn match asmx86Opcode "\<r[co][rl][bwl]\=\s"
syn match asmx86Opcode_pre "\<repn\=[ez]\=\s"
syn match asmx86Opcode_br "\<retf\=\>"
syn match asmx86Opcode "\<sahf\>"
syn match asmx86Opcode "\<s[ah][rl][bwl]\=\s"
syn match asmx86Opcode "\<sbb[bwl]\=\s"
syn match asmx86Opcode "\<scas[bwld]\=\s"
syn match asmx86Opcode "\<set.\{,3}\s"
" We do the same hack as a jmp here. We'll only allow the valid ones, later.
syn match asmx86Opcode_mv "\<s[gil]dtl\=\s"
syn match asmx86Opcode "\<sh[lr][dbwl]\=\s"
syn match asmx86Opcode_mv "\<smsw\s"
syn match asmx86Opcode "\<st[cdi]\>"
syn match asmx86Opcode_mv "\<stos[bwld]\=\>"
syn match asmx86Opcode_mv "\<str\s"
syn match asmx86Opcode "\<sub[bwl]\=\s"
syn match asmx86Opcode "\<test[bwl]\=\s"
syn match asmx86Opcode "\<ver[rw]\s"
syn match asmx86Opcode "\<wait\>"
syn match asmx86Opcode "\<wbinvd\>"
syn match asmx86Opcode_mv "\<xadd[bwl]\=\s"
syn match asmx86Opcode_mv "\<xchg[bwl]\=\s"
syn match asmx86Opcode_mv "\<xlatb\=\>"
syn match asmx86Opcode "\<xor[bwl]\=\s"
" 68k instructions... here, because they are sometimes matching, and we haven't
" gotten the x86 ones up to speed yet....
" syn match asmx86Opcode "\<abcd\(\.b\)\=\s"
" syn match asmx86Opcode "\<adda\(\.[wl]\)\=\s"
" syn match asmx86Opcode "\<addi\(\.[bwl]\)\=\s"
" syn match asmx86Opcode "\<addq\(\.[bwl]\)\=\s"
" syn match asmx86Opcode "\<addx\(\.[bwl]\)\=\s"
" syn match asmx86Opcode "\<add\(\.[bwl]\)\=\s"
" syn match asmx86Opcode "\<andi\(\.[bwl]\)\=\s"
" syn match asmx86Opcode "\<and\(\.[bwl]\)\=\s"
" syn match asmx86Opcode "\<as[lr]\(\.[bwl]\)\=\s"
" syn match asmx86Opcode "\<b[vc][cs]\(\.[bwls]\)\=\s"
" syn match asmx86Opcode "\<beq\(\.[bwls]\)\=\s"
" syn match asmx86Opcode "\<bg[et]\(\.[bwls]\)\=\s"
" syn match asmx86Opcode "\<b[hm]i\(\.[bwls]\)\=\s"
" syn match asmx86Opcode "\<bl[est]\(\.[bwls]\)\=\s"
" syn match asmx86Opcode "\<bne\(\.[bwls]\)\=\s"
" syn match asmx86Opcode "\<bpl\(\.[bwls]\)\=\s"
" syn match asmx86Opcode "\<bchg\(\.[bl]\)\=\s"
" syn match asmx86Opcode "\<bclr\(\.[bl]\)\=\s"
" syn match asmx86Opcode "\<bfchg\s"
" syn match asmx86Opcode "\<bfclr\s"
" syn match asmx86Opcode "\<bfexts\s"
" syn match asmx86Opcode "\<bfextu\s"
" syn match asmx86Opcode "\<bfffo\s"
" syn match asmx86Opcode "\<bfins\s"
" syn match asmx86Opcode "\<bfset\s"
" syn match asmx86Opcode "\<bftst\s"
" syn match asmx86Opcode "\<bkpt\s"
" syn match asmx86Opcode "\<bra\(\.[bwls]\)\=\s"
" syn match asmx86Opcode "\<bset\(\.[bl]\)\=\s"
" syn match asmx86Opcode "\<bsr\(\.[bwl]\)\=\s"
" syn match asmx86Opcode "\<btst\(\.[bl]\)\=\s"
" syn match asmx86Opcode "\<callm\s"
" syn match asmx86Opcode "\<cas2\(\.[wl]\)\=\s"
" syn match asmx86Opcode "\<cas\(\.[bwl]\)\=\s"
" syn match asmx86Opcode "\<chk2\(\.[bwl]\)\=\s"
" syn match asmx86Opcode "\<chk\(\.[wl]\)\=\s"
" syn match asmx86Opcode "\<clr\(\.[bwl]\)\=\s"
" syn match asmx86Opcode "\<cmpa\(\.[wl]\)\=\s"
" syn match asmx86Opcode "\<cmpi\(\.[bwl]\)\=\s"
" syn match asmx86Opcode "\<cmpm\(\.[bwl]\)\=\s"
" syn match asmx86Opcode "\<cmp2\(\.[bwl]\)\=\s"
" syn match asmx86Opcode "\<cmp\(\.[bwl]\)\=\s"
" syn match asmx86Opcode "\<db[cv][cs]\(\.w\)\=\s"
" syn match asmx86Opcode "\<dbeq\(\.w\)\=\s"
" syn match asmx86Opcode "\<db[ft]\(\.w\)\=\s"
" syn match asmx86Opcode "\<dbg[et]\(\.w\)\=\s"
" syn match asmx86Opcode "\<db[hm]i\(\.w\)\=\s"
" syn match asmx86Opcode "\<dbl[est]\(\.w\)\=\s"
" syn match asmx86Opcode "\<dbne\(\.w\)\=\s"
" syn match asmx86Opcode "\<dbpl\(\.w\)\=\s"
" syn match asmx86Opcode "\<dbra\(\.w\)\=\s"
" syn match asmx86Opcode "\<div[su]\(\.[wl]\)\=\s"
" syn match asmx86Opcode "\<div[su]l\(\.l\)\=\s"
" syn match asmx86Opcode "\<eori\(\.[bwl]\)\=\s"
" syn match asmx86Opcode "\<eor\(\.[bwl]\)\=\s"
" syn match asmx86Opcode "\<exg\(\.l\)\=\s"
" syn match asmx86Opcode "\<extb\(\.l\)\=\s"
" syn match asmx86Opcode "\<ext\(\.[wl]\)\=\s"
" syn match asmx86Opcode "\<illegal\>"
" syn match asmx86Opcode "\<jmp\(\.[ls]\)\=\s"
" syn match asmx86Opcode "\<jsr\(\.[ls]\)\=\s"
" syn match asmx86Opcode "\<lea\(\.l\)\=\s"
" syn match asmx86Opcode "\<link\(\.[wl]\)\=\s"
" syn match asmx86Opcode "\<ls[lr]\(\.[bwl]\)\=\s"
" syn match asmx86Opcode "\<movea\(\.[wl]\)\=\s"
" syn match asmx86Opcode "\<movec\(\.l\)\=\s"
" syn match asmx86Opcode "\<movem\(\.[wl]\)\=\s"
" syn match asmx86Opcode "\<movep\(\.[wl]\)\=\s"
" syn match asmx86Opcode "\<moveq\(\.l\)\=\s"
" syn match asmx86Opcode "\<moves\(\.[bwl]\)\=\s"
" syn match asmx86Opcode "\<move\(\.[bwl]\)\=\s"
" syn match asmx86Opcode "\<mul[su]\(\.[wl]\)\=\s"
" syn match asmx86Opcode "\<nbcd\(\.b\)\=\s"
" syn match asmx86Opcode "\<negx\(\.[bwl]\)\=\s"
" syn match asmx86Opcode "\<neg\(\.[bwl]\)\=\s"
" syn match asmx86Opcode "\<nop\>"
" syn match asmx86Opcode "\<not\(\.[bwl]\)\=\s"
" syn match asmx86Opcode "\<ori\(\.[bwl]\)\=\s"
" syn match asmx86Opcode "\<or\(\.[bwl]\)\=\s"
" syn match asmx86Opcode "\<pack\s"
" syn match asmx86Opcode "\<pea\(\.l\)\=\s"
" syn match asmx86Opcode "\<reset\>"
" syn match asmx86Opcode "\<ro[lr]\(\.[bwl]\)\=\s"
" syn match asmx86Opcode "\<rox[lr]\(\.[bwl]\)\=\s"
" syn match asmx86Opcode "\<rt[dm]\s"
" syn match asmx86Opcode "\<rt[ers]\>"
" syn match asmx86Opcode "\<sbcd\(\.b\)\=\s"
" syn match asmx86Opcode "\<s[cv][cs]\(\.b\)\=\s"
" syn match asmx86Opcode "\<seq\(\.b\)\=\s"
" syn match asmx86Opcode "\<s[ft]\(\.b\)\=\s"
" syn match asmx86Opcode "\<sg[et]\(\.b\)\=\s"
" syn match asmx86Opcode "\<s[hm]i\(\.b\)\=\s"
" syn match asmx86Opcode "\<sl[est]\(\.b\)\=\s"
" syn match asmx86Opcode "\<sne\(\.b\)\=\s"
" syn match asmx86Opcode "\<spl\(\.b\)\=\s"
" syn match asmx86Opcode "\<suba\(\.[wl]\)\=\s"
" syn match asmx86Opcode "\<subi\(\.[bwl]\)\=\s"
" syn match asmx86Opcode "\<subq\(\.[bwl]\)\=\s"
" syn match asmx86Opcode "\<subx\(\.[bwl]\)\=\s"
" syn match asmx86Opcode "\<sub\(\.[bwl]\)\=\s"
" syn match asmx86Opcode "\<swap\(\.w\)\=\s"
" syn match asmx86Opcode "\<tas\(\.b\)\=\s"
" syn match asmx86Opcode "\<tdiv[su]\(\.l\)\=\s"
" syn match asmx86Opcode "\<t\(rap\)\=[cv][cs]\(\.[wl]\)\=\s"
" syn match asmx86Opcode "\<t\(rap\)\=eq\(\.[wl]\)\=\s"
" syn match asmx86Opcode "\<t\(rap\)\=[ft]\(\.[wl]\)\=\s"
" syn match asmx86Opcode "\<t\(rap\)\=g[et]\(\.[wl]\)\=\s"
" syn match asmx86Opcode "\<t\(rap\)\=[hm]i\(\.[wl]\)\=\s"
" syn match asmx86Opcode "\<t\(rap\)\=l[est]\(\.[wl]\)\=\s"
" syn match asmx86Opcode "\<t\(rap\)\=ne\(\.[wl]\)\=\s"
" syn match asmx86Opcode "\<t\(rap\)\=pl\(\.[wl]\)\=\s"
" syn match asmx86Opcode "\<t\(rap\)\=v\>"
" syn match asmx86Opcode "\<t\(rap\)\=[cv][cs]\>"
" syn match asmx86Opcode "\<t\(rap\)\=eq\>"
" syn match asmx86Opcode "\<t\(rap\)\=[ft]\>"
" syn match asmx86Opcode "\<t\(rap\)\=g[et]\>"
" syn match asmx86Opcode "\<t\(rap\)\=[hm]i\>"
" syn match asmx86Opcode "\<t\(rap\)\=l[est]\>"
" syn match asmx86Opcode "\<t\(rap\)\=ne\>"
" syn match asmx86Opcode "\<t\(rap\)\=pl\>"
" syn match asmx86Opcode "\<trap\s"
" syn match asmx86Opcode "\<tst\(\.[bwl]\)\=\s"
" syn match asmx86Opcode "\<unlk\s"
" syn match asmx86Opcode "\<unpk\s"
" Valid labels
syn match asmx86Label "^[a-z_?.][a-z0-9_?.$]*$"
syn match asmx86Label "^[a-z_?.][a-z0-9_?.$]*\s"he=e-1
syn match asmx86Label "^\s*[a-z_?.][a-z0-9_?.$]*:"he=e-1
" Various number formats
syn match hexNumber "\$[0-9a-fA-F]\+\>"
syn match hexNumber "$0x[0-9a-fA-F]\+\>"
syn match hexNumber "0x[0-9a-fA-F]\+\>"
syn match hexNumber "\<[0-9][0-9a-fA-F]*H\>"
syn match octNumber "@[0-7]\+\>"
syn match octNumber "\<[0-7]\+[QO]\>"
syn match binNumber "%[01]\+\>"
syn match binNumber "\<[01]\+B\>"
syn match decNumber "\<[0-9]\+D\=\>"
syn match floatE "_*E_*" contained
syn match floatExponent "_*E_*[-+]\=[0-9]\+" contained contains=floatE
syn match floatNumber "[-+]\=[0-9]\+_*E_*[-+]\=[0-9]\+" contains=floatExponent
syn match floatNumber "[-+]\=[0-9]\+\.[0-9]\+\(E[-+]\=[0-9]\+\)\=" contains=floatExponent
syn match floatNumber ":\([0-9a-f]\+_*\)\+"
" Character string constants
"syn match asmx86StringError "'[ -~]*'"
"syn match asmx86StringError "'[ -~]*$"
"syn region asmx86String start="'" skip="''" end="'" oneline contains=asmx86CharError
syn match asmx86CharError "[^ -~]" contained
" Immediate data
" syn match asmx86Immediate "#\$[0-9a-fA-F]\+" contains=hexNumber
" syn match asmx86Immediate "#[0-9][0-9a-fA-F]*H" contains=hexNumber
" syn match asmx86Immediate "#@[0-7]\+" contains=octNumber
" syn match asmx86Immediate "#[0-7]\+[QO]" contains=octNumber
" syn match asmx86Immediate "#%[01]\+" contains=binNumber
" syn match asmx86Immediate "#[01]\+B" contains=binNumber
" syn match asmx86Immediate "#[0-9]\+D\=" contains=decNumber
syn match asmx86Symbol "[a-z_?.][a-z0-9_?.$]*" contained
" syn match asmx86Immediate "#[a-z_?.][a-z0-9_?.]*" contains=asmx86Symbol
" Special items for comments
syn keyword asmx86Todo contained TODO XXX FIXME CHANGED
" Operators
syn match asmx86Operator "\.SIZEOF\."
syn match asmx86Operator "\.STARTOF\."
syn match asmx86Operator "<<" " shift left
syn match asmx86Operator ">>" " shift right
syn match asmx86Operator "&" " bit-wise logical and
syn match asmx86Operator "!" " bit-wise logical or
syn match asmx86Operator "!!" " exclusive or
syn match asmx86Operator "<>" " inequality
syn match asmx86Operator "=" " must be before other ops containing '='
syn match asmx86Operator ">="
syn match asmx86Operator "<="
syn match asmx86Operator "==" " operand existance - used in macro definitions
" Condition code style operators
syn match asmx86Operator "<[CV][CS]>"
syn match asmx86Operator "<EQ>"
syn match asmx86Operator "<G[TE]>"
syn match asmx86Operator "<[HM]I>"
syn match asmx86Operator "<L[SET]>"
syn match asmx86Operator "<NE>"
syn match asmx86Operator "<PL>"
" Include
syn match asmx86Include "\<INCLUDE\s"
syn region asmIncluded display contained start=+"+ skip=+\\\\\|\\"+ end=+"+
syn match asmx86Included display contained "<[^"]*>"
syn match asmx86Include display "^\s*#\s*include\>\s*["<]" contains=asmx86Included
" Comments
" syn match asmx86Comment ";.*" contains=asmx86Todo
" syn match asmx86Comment "#.*" contains=asmx86Todo
" syn match asmx86Comment "\s!.*"ms=s+1 contains=asmx86Todo
" syn match asmx86Comment "^\s*[*!].*" contains=asmx86Todo
" Standard macros
syn match asmx86Cond "\<IF\(\.[BWL]\)\=\s"
syn match asmx86Cond "\<THEN\(\.[SL]\)\=\>"
syn match asmx86Cond "\<ELSE\(\.[SL]\)\=\>"
syn match asmx86Cond "\<ENDI\>"
syn match asmx86Cond "\<BREAK\(\.[SL]\)\=\>"
syn match asmx86Repeat "\<FOR\(\.[BWL]\)\=\s"
syn match asmx86Repeat "\<DOWNTO\s"
syn match asmx86Repeat "\<TO\s"
syn match asmx86Repeat "\<BY\s"
syn match asmx86Repeat "\<DO\(\.[SL]\)\=\>"
syn match asmx86Repeat "\<ENDF\>"
syn match asmx86Repeat "\<NEXT\(\.[SL]\)\=\>"
syn match asmx86Repeat "\<REPEAT\>"
syn match asmx86Repeat "\<UNTIL\(\.[BWL]\)\=\s"
syn match asmx86Repeat "\<WHILE\(\.[BWL]\)\=\s"
syn match asmx86Repeat "\<ENDW\>"
" Macro definition
syn match asmx86Macro "\<MACRO\>"
syn match asmx86Macro "\<LOCAL\s"
syn match asmx86Macro "\<MEXIT\>"
syn match asmx86Macro "\<ENDM\>"
syn match asmx86MacroParam "\\[0-9]"
" Conditional assembly
syn match asmx86PreCond "\<IFC\s"
syn match asmx86PreCond "\<IFDEF\s"
syn match asmx86PreCond "\<IFEQ\s"
syn match asmx86PreCond "\<IFGE\s"
syn match asmx86PreCond "\<IFGT\s"
syn match asmx86PreCond "\<IFLE\s"
syn match asmx86PreCond "\<IFLT\s"
syn match asmx86PreCond "\<IFNC\>"
syn match asmx86PreCond "\<IFNDEF\s"
syn match asmx86PreCond "\<IFNE\s"
syn match asmx86PreCond "\<ELSEC\>"
syn match asmx86PreCond "\<ENDC\>"
" Loop control
syn match asmx86PreCond "\<REPT\s"
syn match asmx86PreCond "\<IRP\s"
syn match asmx86PreCond "\<IRPC\s"
syn match asmx86PreCond "\<ENDR\>"
" Directives
syn match asmx86Directive "\<ALIGN\s"
syn match asmx86Directive "\<CHIP\s"
syn match asmx86Directive "\<COMLINE\s"
syn match asmx86Directive "\<COMMON\(\.S\)\=\s"
syn match asmx86Directive "\<DC\(\.[BWLSDXP]\)\=\s"
syn match asmx86Directive "\<DC\.\\[0-9]\s"me=e-3 " Special use in a macro def
syn match asmx86Directive "\<DCB\(\.[BWLSDXP]\)\=\s"
syn match asmx86Directive "\<DS\(\.[BWLSDXP]\)\=\s"
syn match asmx86Directive "\<END\>"
syn match asmx86Directive "\<EQU\s"
syn match asmx86Directive "\<FEQU\(\.[SDXP]\)\=\s"
syn match asmx86Directive "\<FAIL\>"
syn match asmx86Directive "\<FOPT\s"
syn match asmx86Directive "\<\(NO\)\=FORMAT\>"
syn match asmx86Directive "\<IDNT\>"
syn match asmx86Directive "\<\(NO\)\=LIST\>"
syn match asmx86Directive "\<LLEN\s"
syn match asmx86Directive "\<MASK2\>"
syn match asmx86Directive "\<NAME\s"
syn match asmx86Directive "\<NOOBJ\>"
syn match asmx86Directive "\<OFFSET\s"
syn match asmx86Directive "\<OPT\>"
syn match asmx86Directive "\<ORG\(\.[SL]\)\=\>"
syn match asmx86Directive "\<\(NO\)\=PAGE\>"
syn match asmx86Directive "\<PLEN\s"
syn match asmx86Directive "\<REG\s"
syn match asmx86Directive "\<RESTORE\>"
syn match asmx86Directive "\<SAVE\>"
syn match asmx86Directive "\<SECT\(\.S\)\=\s"
syn match asmx86Directive "\<SECTION\(\.S\)\=\s"
syn match asmx86Directive "\<SET\s"
syn match asmx86Directive "\<SPC\s"
syn match asmx86Directive "\<TTL\s"
syn match asmx86Directive "\<XCOM\s"
syn match asmx86Directive "\<XDEF\s"
syn match asmx86Directive "\<XREF\(\.S\)\=\s"
syn match asmx86Constraint "\.[a-z]\+[a-z0-9]*\>"
syn match asmx86Constraintconst "\.\(\(byte\)\|\(d\=word\)\)\>"
syn case match
" Define the default highlighting.
" For version 5.7 and earlier: only when not done already
" For version 5.8 and later: only when an item doesn't have highlighting yet
if version >= 508 || !exists("did_asmx86_syntax_inits")
if version < 508
let did_asmx86_syntax_inits = 1
command -nargs=+ HiLink hi link <args>
else
command -nargs=+ HiLink hi def link <args>
endif
" The default methods for highlighting. Can be overridden later
" Comment Constant Error Identifier PreProc Special Statement Todo Type
"
" Constant Boolean Character Number String
" Identifier Function
" PreProc Define Include Macro PreCondit
" Special Debug Delimiter SpecialChar SpecialComment Tag
" Statement Conditional Exception Keyword Label Operator Repeat
" Type StorageClass Structure Typedef
HiLink asmx86Comment DarkGrey
HiLink asmx86Commentcpp DarkGrey
HiLink asmx86Commentc DarkGrey
HiLink asmx86Commentcxx DarkGrey
HiLink asmx86Commenthash DarkGrey
HiLink asmx86Todo Todo
HiLink hexNumber Number " Constant
HiLink octNumber Number " Constant
HiLink binNumber Number " Constant
HiLink decNumber Number " Constant
HiLink floatNumber Number " Constant
HiLink floatExponent Number " Constant
HiLink floatE SpecialChar " Statement
"HiLink floatE Number " Constant
HiLink asmx86Immediate Identifier " Statement
"HiLink asmx86Symbol Constant
HiLink asmx86String String " Constant
HiLink asmx86Included String " Constant
HiLink asmx86CharError Error
HiLink asmx86StringError Error
HiLink asmx86Reg Identifier
HiLink asmx86Operator Identifier
HiLink asmx86Include Include " PreProc
HiLink asmx86Macro Macro " PreProc
HiLink asmx86PreProc PreProc " PreProc
HiLink asmx86MacroParam Keyword " Statement
HiLink asmx86Directive Special
HiLink asmx86PreCond Special
HiLink asmx86Constraint Keyword
HiLink asmx86Constraintconst Type
HiLink asmx86Opcode Keyword
HiLink asmx86Opcode_mv Special
HiLink asmx86Opcode_pre Todo
HiLink asmx86Opcode_br Macro
HiLink asmx86Opcode_io String
HiLink asmx86Opcode_o2 String
" We have "normal" opcodes, "move" opcodes, "prefix" opcodes, and "branch"
" opcodes..... Prefixes are rare, and we should alert them VERY specially
HiLink asmx86Cond Conditional " Statement
HiLink asmx86Repeat Repeat " Statement
HiLink asmx86Label Type
delcommand HiLink
endif
let b:current_syntax = "asmx86"
" vim: ts=8 sw=2

113
.oldvim/vim/syntax/haml.vim Normal file
View file

@ -0,0 +1,113 @@
" Vim syntax file
" Language: Haml (XHTML Abstraction Markup Language)
" Maintainer: Dmitry A. Ilyashevich <dmitry.ilyashevich@gmail.com>
" License: This file can be redistribued and/or modified under the same terms
" as Vim itself.
"
" Version: 0.3
" Last Change: 2008-03-16
" Notes: Last synced with Haml 1.8
" TODO: Support for indented multiline sections
"
" For version 5.x: Clear all syntax items
" For version 6.x: Quit when a syntax file was already loaded
"
" Changes:
" - David Bushong added support for Haml 1.8's == syntax for ruby strings;
" - Lasse Jansen make syntax highlighting of multiline ruby commands work
" ("|" at the end of the line).
"
if version < 600
syntax clear
elseif exists("b:current_syntax")
finish
endif
if !exists("main_syntax")
let main_syntax = 'haml'
endif
if version < 600
so <sfile>:p:h/html.vim
syn include @rubyTop <sfile>:p:h/ruby.vim
else
runtime! syntax/html.vim
unlet b:current_syntax
syn include @rubyTop syntax/ruby.vim
endif
syn region hamlLineTag start="^\s*%[a-zA-Z0-9\-_\:]\+" end="$" oneline keepend contains=hamlHtmlTag,hamlCssClassIncluded,hamlCssIdIncluded,hamlHtmlTagEnd,hamlRubyCodeIncluded,hamlRubyHash,hamlSpecialChar
syn region hamlLineTag start="^\s*%[a-zA-Z0-9\-_\:]\+" end="$" oneline keepend contains=hamlHtmlTag,hamlCssClassIncluded,hamlCssIdIncluded,hamlHtmlTagEnd,hamlRubyCodeIncluded,hamlRubyHash,hamlRubyStringIncluded
syn match hamlHtmlTagEnd "/$" contained
syn match hamlHtmlTag "^\s*%[a-zA-Z0-9\-_\:]\+" contained contains=htmlTagName
syn match hamlCssClassIncluded "\.[a-zA-Z0-9\-_\:]\+" contained
syn match hamlCssIdIncluded "\#[a-zA-Z0-9\-_\:]\+" contained
syn region hamlLineClass start="^\s*\.[a-zA-Z0-9\-_\:]*" end="$" oneline keepend contains=hamlCssClass,hamlCssClassIncluded,hamlCssIdIncluded,hamlRubyCodeIncluded,hamlRubyStringIncluded
syn region hamlLineId start="^\s*\#[a-zA-Z0-9\-_\:]*" end="$" oneline keepend contains=hamlCssId,hamlCssClassIncluded,hamlCssIdIncluded,hamlRubyCodeIncluded,hamlRubyStringIncluded
syn match hamlCssId "^\s*#[a-zA-Z0-9\-_\:]*" contained
syn match hamlCssClass "^\s*\.[a-zA-Z0-9\-_\:]*" contained
syn region hamlRubyCodeIncluded matchgroup=Delimiter start="[=~-] " end="$" contained contains=@rubyTop,hamlRubyHash keepend
syn region hamlRubyHash matchgroup=Delimiter start="{" end="}" contained contains=@rubyTop keepend
syn region hamlRubyCode matchgroup=Delimiter start="^\s*[=~-]" end="$" contains=@rubyTop,hamlRubyHash keepend
syn region hamlRubyStringIncluded matchgroup=Delimiter start="== " end="$" contained contains=@rubyStringSpecial keepend
syn region hamlRubyString matchgroup=Delimiter start="^\s*==" end="$" contains=@rubyStringSpecial
syn match hamlPreDef "^\s*:[a-zA-Z0-9\-_\:]\+"
syn region hamlPreProc start="^\s*\\" end="$"
syn match hamlPreProc " |$"
syn match hamlComment "^!!!.*$"
syn match hamlComment "^\s*/.*$" contains=hamlTodo,@Spell
syn keyword hamlTodo TODO FIXME XXX contained
" special characters
syn match hamlSpecialChar contained "&#\=[0-9A-Za-z]\{1,8};"
" Define the default highlighting.
" For version 5.7 and earlier: only when not done already
" For version 5.8 and later: only when an item doesn't have highlighting yet
if version >= 508 || !exists("did_haml_syntax_inits")
if version < 508
let did_haml_syntax_inits = 1
command -nargs=+ HiLink hi link <args>
else
command -nargs=+ HiLink hi def link <args>
endif
HiLink hamlLineClass hamlLineTag
HiLink hamlLineId hamlLineTag
HiLink hamlCssClassIncluded hamlCssClass
HiLink hamlCssIdIncluded Type
HiLink hamlCssId Type
HiLink hamlHtmlTagEnd hamlHtmlTag
HiLink hamlPreDef hamlHtmlTag
HiLink hamlRubyHash hamlLineTag
HiLink hamlRubyCode hamlLineTag
HiLink hamlRubyCodeIncluded hamlLineTag
HiLink hamlRubyString hamlLineTag
HiLink hamlRubyStringIncluded hamlLineTag
HiLink hamlLineTag Text
HiLink hamlHtmlTag Statement
HiLink hamlCssClass Type
HiLink hamlPreProc PreProc
HiLink hamlComment Comment
HiLink hamlTodo Todo
HiLink hamlSpecialChar Special
delcommand HiLink
endif
let b:current_syntax = "haml"
if main_syntax == 'haml'
unlet main_syntax
endif
" vim: nowrap sw=2 sts=2 ts=8 ff=unix:

134
.oldvim/vim/syntax/j.vim Normal file
View file

@ -0,0 +1,134 @@
" Vim syntax file
" Language: J
" Maintainer: Bill Lam<bbill.lam@gmail.com>
" Last Change:
" 2008 Apr 04 Initial commit
" 2009 Feb 13 UPload to jwiki
" It is by no means complete.
" Send comments, suggestions and requests to the maintainer.
if exists("b:current_syntax")
finish
endif
if exists("j_minlines")
let b:j_minlines = j_minlines
else
let b:j_minlines = 15
endif
exec "syn sync linebreaks=1 minlines=" . b:j_minlines
" jVerb
" = < <. <: > >. >: _: + +. +: * *. *: - -. -: % %. %: ^ ^. $ $. $: ~. ~: | |. |:
" , ,. ,: ; ;: # #. #: ! /: \: [ [: ] { {. {: {:: }. }: ". ": ? ?.
" A. c. C. e. E. i. i: I. j. L. o. p. p: q: r. s: u: x:
" _9: _8: _7: _6: _5: _4: _3: _2: _1: 0: 1: 2: 3: 4: 5: 6: 7: 8: 9:
" jNoun
" a. a: _. _:
" jConjuction
" ^: . .. .: : :. :: ;. !. !: " ` `: @ @. @: & &. &: &.: d. D. D: H. L: S: T.
" jAdverb
" ~ / \ /. \. } b. f. M. t. t:
syn match jName "\a\w*"
syn match jArgument "\<[xymnuv]\.\=\>" contained
syn match jNumber "[_0-9][_0-9\.a-zA-Z]*"
syn match jConjunction "\."
syn match jConjunction ":"
syn match jVerb "[-!#$%\*+,;<=>\?[\]^{|]"
syn match jConjunction "[\"&@`]"
syn match jAdverb "[/\\}~]"
syn match jVerb "[-\"#\$%\*+,<>\?^{|}~]\."
syn match jConjunction "[!&@;:\.]\."
syn match jAdverb "[/\\]\."
syn match jVerb "p\.\."
syn match jVerb "[-\"#\$%\*+,;<>\?\[{|}~/\\]:"
syn match jConjunction "[!&@^\.:]:"
syn match jConjunction "&\.:"
syn match jVerb "{::"
syn match jVerb "_\=\d:"
syn match jVerb "[AcCeEiIjLopr]\."
syn match jConjunction "[dDHT]\."
syn match jAdverb "[bfMt]\."
syn match jVerb "[ipqsux]:"
syn match jConjunction "[DLS]:"
syn match jAdverb "t:"
syn match jNoun "[a_][\.:]"
syn match jCopula "=[\.:]"
syn match jParenthesis "[()]"
syn match jControl "\<assert\." contained
syn match jControl "\<break\." contained
syn match jControl "\<case\." contained
syn match jControl "\<catch\." contained
syn match jControl "\<catchd\." contained
syn match jControl "\<catcht\." contained
syn match jControl "\<continue\." contained
syn match jControl "\<do\." contained
syn match jControl "\<else\." contained
syn match jControl "\<elseif\." contained
syn match jControl "\<end\." contained
syn match jControl "\<fcase\." contained
syn match jControl "\<for_\%(\a\w*\)\=\." contained
syn match jControl "\<goto_\%(\a\w*\)\." contained
syn match jControl "\<if\." contained
syn match jControl "\<label_\%(\a\w*\)\." contained
syn match jControl "\<return\." contained
syn match jControl "\<select\." contained
syn match jControl "\<throw\." contained
syn match jControl "\<try\." contained
syn match jControl "\<while\." contained
syn match jControl "\<whilst\." contained
syn match jError "\%('.*'\)*'"
" String and Character contstants
syn region jString oneline start="'" skip="''" end="'"
syn keyword jTodo FIXME contained
syn keyword jTodo TODO contained
syn keyword jTodo XXX contained
syn region jComment oneline start="NB\." end="$" contains=jTodo
" enable syntax folding with
setlocal foldmethod=syntax
setlocal nofoldenable
syntax region jDef start="\<\%([1-4]\|13\)\s\+:\s*0\>" end="^)\s*$" contains=ALLBUT,jTodo transparent keepend fold
syntax region jDef start="\<adverb\s\+define\>" end="^)\s*$" contains=ALLBUT,jTodo transparent keepend fold
syntax region jDef start="\<conjunction\s\+define\>" end="^)\s*$" contains=ALLBUT,jTodo transparent keepend fold
syntax region jDef start="\<verb\s\+define\>" end="^)\s*$" contains=ALLBUT,jTodo transparent keepend fold
syntax region jDef start="\<monad\s\+define\>" end="^)\s*$" contains=ALLBUT,jTodo transparent keepend fold
syntax region jDef start="\<dyad\s\+define\>" end="^)\s*$" contains=ALLBUT,jTodo transparent keepend fold
" syntax region jBlock start="\<\%(if\|select\|try\|\%(for_\%(\a\w*\)\=\)\|while\|whilst\)\." end="\<end\." contained contains=ALLBUT,jDef,jNounDef,jTodo transparent fold
syntax region jNounDef start="\<0\s\+:\s*0\s*$" end="^)\s*$" keepend fold
syntax region jNounDef start="\<noun\s\+define\s*$" end="^)\s*$" keepend fold
" Define the default highlighting.
if !exists("did_j_syntax_inits")
hi link jAdverb Type
hi link jArgument Operator
hi link jComment Comment
hi link jConjunction Macro
hi link jControl Keyword
hi link jCopula Special
hi link jError Error
hi link jName Identifier
hi link jNoun String
hi link jNounDef Define
hi link jNumber Number
hi link jParenthesis Delimiter
hi link jString String
hi link jTodo Todo
hi link jVerb Operator
endif
let b:current_syntax = "j"

View file

@ -0,0 +1,149 @@
" Vim syntax file
" Language: JFlex
" Maintainer: Gerwin Klein <lsf@jflex.de>
" Last Change: $Revision: 50 $, $Date: 2003-06-08 21:01:12 +1000 (Sun, 08 Jun 2003) $
" Thanks to Michael Brailsford for help and suggestions
" Quit when a syntax file was already loaded {{{
if exists("b:current_syntax")
finish
endif
"}}}
" Include java syntax {{{
if version >= 600
runtime! syntax/java.vim
unlet b:current_syntax
else
so $VIMRUNTIME/syntax/java.vim
endif
"}}}
syn cluster jflexOptions contains=jflexOption,jflexCodeInclude,jflexComment,jflexMacroIdent,jflexMacroRegExp,jflexOptionError
syn cluster jflexRules contains=jflexRule,jflexComment,jflexActionCode,jflexRuleStates,jflexRegExp
" java code section
syn region jflexStart start="/\*\|//\|import\|package\|class"me=s end="^%%"me=e-2 contains=@javaTop nextgroup=jflexOptionReg
" %%
" options
syn region jflexOptionReg matchgroup=jflexSectionSep start="^%%" end="^%%"me=e-2 contains=@jflexOptions nextgroup=jflexRulesReg
syn match jflexOptionError "%\i*" contained
syn match jflexOption "^\(%s\|%x\)" contained
syn match jflexOption "^%state" contained
syn match jflexOption "^%states" contained
syn match jflexOption "^%xstate" contained
syn match jflexOption "^%xstates" contained
syn match jflexOption "^%char" contained
syn match jflexOption "^%line" contained
syn match jflexOption "^%column" contained
syn match jflexOption "^%byaccj" contained
syn match jflexOption "^%cup" contained
syn match jflexOption "^%cupsym" contained
syn match jflexOption "^%cupdebug" contained
syn match jflexOption "^%eofclose" contained
syn match jflexOption "^%class" contained
syn match jflexOption "^%function" contained
syn match jflexOption "^%type" contained
syn match jflexOption "^%integer" contained
syn match jflexOption "^%int" contained
syn match jflexOption "^%intwrap" contained
syn match jflexOption "^%yyeof" contained
syn match jflexOption "^%notunix" contained
syn match jflexOption "^%7bit" contained
syn match jflexOption "^%8bit" contained
syn match jflexOption "^%full" contained
syn match jflexOption "^%16bit" contained
syn match jflexOption "^%unicode" contained
syn match jflexOption "^%caseless" contained
syn match jflexOption "^%ignorecase" contained
syn match jflexOption "^%implements" contained
syn match jflexOption "^%extends" contained
syn match jflexOption "^%public" contained
syn match jflexOption "^%apiprivate" contained
syn match jflexOption "^%final" contained
syn match jflexOption "^%abstract" contained
syn match jflexOption "^%debug" contained
syn match jflexOption "^%standalone" contained
syn match jflexOption "^%switch" contained
syn match jflexOption "^%table" contained
syn match jflexOption "^%pack" contained
syn match jflexOption "^%include" contained
syn match jflexOption "^%buffer" contained
syn match jflexOption "^%initthrow" contained
syn match jflexOption "^%eofthrow" contained
syn match jflexOption "^%yylexthrow" contained
syn match jflexOption "^%throws" contained
syn match jflexOption "^%scannerror" contained
syn match jflexMacroIdent "\I\i*\s*="me=e-1 contained nextgroup=jflexMacroRegExp
syn region jflexMacroRegExp matchgroup=jflexOperator start="=" end="^\(%\|\I\|\i\|/\)"me=e-1 contains=NONE contained
syn region jflexCodeInclude matchgroup=jflexCodeIncludeMark start="^%{" end="^%}" contains=@javaTop contained
syn region jflexCodeInclude matchgroup=jflexCodeIncludeMark start="^%init{" end="^%init}" contains=@javaTop contained
syn region jflexCodeInclude matchgroup=jflexCodeIncludeMark start="^%initthrow{" end="^%initthrow}" contains=@javaTop contained
syn region jflexCodeInclude matchgroup=jflexCodeIncludeMark start="^%eof{" end="^%eof}" contains=@javaTop contained
syn region jflexCodeInclude matchgroup=jflexCodeIncludeMark start="^%eofthrow{" end="^%eofthrow}" contains=@javaTop contained
syn region jflexCodeInclude matchgroup=jflexCodeIncludeMark start="^%yylexthrow{" end="^%yylexthrow}" contains=@javaTop contained
syn region jflexCodeInclude matchgroup=jflexCodeIncludeMark start="^%eofval{" end="^%eofval}" contains=@javaTop contained
" rules (end pattern shouldn't occur, if it does anyway we just stay in jflexRulesReg)
syn region jflexRulesReg matchgroup=jflexSectionSep start="^%%" end="^%%"me=e-2 contains=@jflexRules
" at first everything but strings is a regexp
syn match jflexRegExp "\([^\" \t]\|\\\"\)\+" contained
" take out comments
syn match jflexComment "//.*" contained
syn region jflexComment start="/\*" end="\*/" contained contains=jflexComment
" lex states
syn match jflexRuleStates "<\s*\I\i*\(\s*,\s*\I\i*\)*\s*>" contained skipnl skipwhite nextgroup=jflexStateGroup
" action code (only after states braces and macro use)
syn region jflexActionCode matchgroup=Delimiter start="{" end="}" contained contains=@javaTop,jflexJavaBraces
" macro use
syn match jflexRegExp "{\s*\I\i*\s*}" contained
" state braces (only active after <state>)
syn region jflexStateGroup matchgroup=jflexRuleStates start="{$" start="{\s" end="}" contained contains=@jflexRules
" string
syn region jflexRegExp matchgroup=String start=+"+ skip=+\\\\\|\\"+ end=+"+ contained
" not to be confused with a state
syn match jflexRegExp "<<EOF>>" contained
" escape sequence
syn match jflexRegExp "\\." contained
" keep braces in actions balanced
syn region jflexJavaBraces start="{" end="}" contained contains=@javaTop,jflexJavaBraces
" syncing
syn sync clear
syn sync minlines=10
syn sync match jflexSync grouphere jflexOptionReg "^%[a-z]"
syn sync match jflexSync grouphere jflexRulesReg "^<"
" highlighting
hi link jflexOption Special
hi link jflexMacroIdent Ident
hi link jflexMacroRegExp Macro
hi link jflexOptionError Error
hi link jflexComment Comment
hi link jflexOperator Operator
hi link jflexRuleStates Special
hi link jflexRegExp Function
hi jflexSectionSep guifg=yellow ctermfg=yellow guibg=blue ctermbg=blue gui=bold cterm=bold
hi link jflexCodeIncludeMark jflexSectionSep
let b:current_syntax="jflex"

View file

@ -0,0 +1,74 @@
" Vim syntax file
" Language: KPL
" Maintainer: Adam Blinkinsop <blinks@acm.org>
" Last Change: 2007 Apr 17
" Remark: A Kernel Programming Language used by the BLITZ tools.
if version < 600
syntax clear
elseif exists("b:current_syntax")
finish
endif
" Comments
syntax region kplSingleLineComment start=/--/ end=/$/ contained
syntax region kplMultiLineComment start=/\/\*/ end=/\*\// contained
syntax cluster kplComment contains=kplSingleLineComment,kplMultiLineComment
" Types
syntax keyword kplType char int double bool void typeOfNull anyType ptr to array of function returns
syntax region kplRecord matchgroup=kplType start=/record/ end=/endRecord/ contains=ALL
" Expressions
syntax keyword kplOperator asPtrTo asInteger arraySize isInstanceOf isKindOf new alloc sizeOf
syntax match kplOp /[][.()<=>|&^!+*/%]/ contained
syntax keyword kplConstant null self super
syntax keyword kplBoolean true false
syntax match kplCharacter /'\\?.'/
syntax match kplInteger /[0-9]+/
syntax match kplHex /0x[0-9a-fA-F]+/
syntax match kplFloat /[0-9]+\.[0-9]+(e[0-9]+)?/
syntax region kplString start=/"/ end=/"/ skip=/\\"/
" Statements
syntax keyword kplConditional if elseIf else endIf switch endSwitch
syntax keyword kplRepeat while endWhile do until for endFor
syntax keyword kplStatement break continue free debug
syntax keyword kplLabel case default
syntax keyword kplException try catch throw endTry
" Block Definitions
syntax keyword kplKeyword extends messages implements superclass fields uses renaming to const var errors type enum returns function[s] external endFunction infix prefix method[s] endMethod
syntax region kplInterface matchgroup=kplDefBlock start=/interface/ end=/endInterface/ contains=ALL
syntax region kplClass matchgroup=kplDefBlock start=/class/ end=/endClass/ contains=ALL
syntax region kplBehavior matchgroup=kplDefBlock start=/behavior/ end=/endBehavior/ contains=ALL
" File Blocks
syntax region kplHeader matchgroup=kplFile start=/header/ end=/endHeader/ contains=ALLBUT,kplHeader,kplCode
syntax region kplCode matchgroup=kplFile start=/code/ end=/endCode/ contains=ALLBUT,kplHeader,kplCode
syntax sync match kplCode grouphere kplCode 'code'
syntax sync match kplCode groupthere kplCode 'endCode'
syntax sync match kplHeader grouphere kplHeader 'region'
syntax sync match kplHeader groupthere kplHeader 'endRegion'
hi def link kplSingleLineComment Comment
hi def link kplMultiLineComment Comment
hi def link kplType Type
hi def link kplOperator Operator
hi def link kplOp Operator
hi def link kplConstant Constant
hi def link kplBoolean Boolean
hi def link kplString String
hi def link kplCharacter Character
hi def link kplInteger Number
hi def link kplHex Number
hi def link kplFloat Float
hi def link kplConditional Conditional
hi def link kplRepeat Repeat
hi def link kplStatement Statement
hi def link kplLabel Label
hi def link kplException Exception
hi def link kplKeyword Keyword
hi def link kplFile Special
hi def link kplDefBlock Structure

View file

@ -0,0 +1,144 @@
" Vim syntax file
" Language: Haskell with literate comments, Bird style,
" TeX style and plain text surrounding
" \begin{code} \end{code} blocks
" Maintainer: Haskell Cafe mailinglist <haskell-cafe@haskell.org>
" Original Author: Arthur van Leeuwen <arthurvl@cs.uu.nl>
" Last Change: Jan 05, 2008 by Kalman Noel
" Version: 1.02
"
" Thanks to Ian Lynagh for thoughtful comments on initial versions and
" for the inspiration for writing this in the first place.
"
" This style guesses as to the type of markup used in a literate haskell
" file and will highlight (La)TeX markup if it finds any
" This behaviour can be overridden, both glabally and locally using
" the lhs_markup variable or b:lhs_markup variable respectively.
"
" lhs_markup must be set to either tex or none to indicate that
" you always want (La)TeX highlighting or no highlighting
" must not be set to let the highlighting be guessed
" b:lhs_markup must be set to eiterh tex or none to indicate that
" you want (La)TeX highlighting or no highlighting for
" this particular buffer
" must not be set to let the highlighting be guessed
"
"
" 2004 February 18: New version, based on Ian Lynagh's TeX guessing
" lhaskell.vim, cweb.vim, tex.vim, sh.vim and fortran.vim
" 2004 February 20: Cleaned up the guessing and overriding a bit
" 2004 February 23: Cleaned up syntax highlighting for \begin{code} and
" \end{code}, added some clarification to the attributions
" 2008 January 05: Fixed broken highlighting when some totally common TeX
" environments or commands are used (document, section, ...)
" For version 5.x: Clear all syntax items
" For version 6.x: Quit when a syntax file was already loaded
if version < 600
syntax clear
elseif exists("b:current_syntax")
finish
endif
" First off, see if we can inherit a user preference for lhs_markup
if !exists("b:lhs_markup")
if exists("lhs_markup")
if lhs_markup =~ '\<\%(tex\|none\)\>'
let b:lhs_markup = matchstr(lhs_markup,'\<\%(tex\|none\)\>')
else
echohl WarningMsg | echo "Unknown value of lhs_markup" | echohl None
let b:lhs_markup = "unknown"
endif
else
let b:lhs_markup = "unknown"
endif
else
if b:lhs_markup !~ '\<\%(tex\|none\)\>'
let b:lhs_markup = "unknown"
endif
endif
" Remember where the cursor is, and go to upperleft
let s:oldline=line(".")
let s:oldcolumn=col(".")
call cursor(1,1)
" If no user preference, scan buffer for our guess of the markup to
" highlight. We only differentiate between TeX and plain markup, where
" plain is not highlighted. The heuristic for finding TeX markup is if
" one of the following occurs anywhere in the file:
" - \documentclass
" - \begin{env} (for env != code)
" - \part, \chapter, \section, \subsection, \subsubsection, etc
if b:lhs_markup == "unknown"
if search('%\|\\documentclass\|\\begin{\(code}\)\@!\|\\\(sub\)*section\|\\chapter|\\part','W') != 0
let b:lhs_markup = "tex"
else
let b:lhs_markup = "plain"
endif
endif
" If user wants us to highlight TeX syntax, read it.
if b:lhs_markup == "tex"
if version < 600
source <sfile>:p:h/tex.vim
set isk+=_
else
runtime! syntax/tex.vim
unlet b:current_syntax
" Tex.vim removes "_" from 'iskeyword', but we need it for Haskell.
setlocal isk+=_
endif
endif
" Literate Haskell is Haskell in between text, so at least read Haskell
" highlighting
if version < 600
syntax include @haskellTop <sfile>:p:h/haskell.vim
else
syntax include @haskellTop syntax/haskell.vim
endif
" Where Haskell is nested within TeX
syntax cluster lhstex contains=tex.*Zone,texAbstract
syntax region lhsHaskellBirdTrack start="^>" end="\%(^[^>]\)\@=" contains=@haskellTop,lhsBirdTrack containedIn=@lhstex
syntax region lhsHaskellBeginEndBlock start="^\\begin{code}\s*$" matchgroup=NONE end="\%(^\\end{code}.*$\)\@=" contains=@haskellTop,@beginCode containedIn=@lhstex
syntax match lhsBirdTrack "^>" contained
syntax match beginCodeBegin "^\\begin" nextgroup=beginCodeCode contained
syntax region beginCodeCode matchgroup=texDelimiter start="{" end="}"
syntax cluster beginCode contains=beginCodeBegin,beginCodeCode
" Define the default highlighting.
" For version 5.7 and earlier: only when not done already
" For version 5.8 and later: only when an item doesn't have highlighting yet
if version >= 508 || !exists("did_tex_syntax_inits")
if version < 508
let did_tex_syntax_inits = 1
command -nargs=+ HiLink hi link <args>
else
command -nargs=+ HiLink hi def link <args>
endif
HiLink lhsBirdTrack Comment
HiLink beginCodeBegin texCmdName
HiLink beginCodeCode texSection
delcommand HiLink
endif
" Restore cursor to original position, as it may have been disturbed
" by the searches in our guessing code
call cursor (s:oldline, s:oldcolumn)
unlet s:oldline
unlet s:oldcolumn
let b:current_syntax = "lhaskell"
" vim: ts=8

View file

@ -0,0 +1,39 @@
" Vim syntax file
" Language: eruby
" Maintainer: Michael Brailsford <brailsmt@yahoo.com>
" Installation:
" To automatilcally load this file when a .rhtml file is opened, add the
" following lines to ~/.vim/filetype.vim:
"
" augroup filetypedetect
" au! BufRead,BufNewFile *.rhtml setfiletype eruby
" augroup END
"
" You will have to restart vim for this to take effect. In any case it
" is a good idea to read ":he new-filetype" so that you know what is going
" on, and why the above lines work.
if version < 600
syntax clear
elseif exists("b:current_syntax")
finish
endif
"Source the html syntax file
ru! syntax/html.vim
"Set the filetype to html to load the html ftplugins
"set ft=html
unlet b:current_syntax
"Put the ruby syntax file in @rubyTop
syn include @rubyTop syntax/ruby.vim
syn region erubyBlock matchgroup=erubyRubyDelim start=#<%=\?# end=#%># keepend containedin=ALL contains=@rubyTop,erubyEnd
syn region erubyComment start=+<%#+ end=#%># keepend
syn match erubyEnd #\<end\>#
hi link erubyRubyDelim todo
hi link erubyComment comment
hi link erubyEnd rubyControl
" vim: set ts=4 sw=4:

View file

@ -0,0 +1,11 @@
" load all of the HTML info
"source $VIMRUNTIME/syntax/html.vim
runtime! syntax/html.vim
unlet b:current_syntax
" load all of the ruby info into @Ruby
syntax include @Ruby $VIMRUNTIME/syntax/ruby.vim
unlet b:current_syntax
syntax region rhtmlRuby start="<%" end="%" contains=@Ruby,rhtmlRuby
let b:current_syntax = "rhtml"

View file

@ -0,0 +1,25 @@
" HTML with embedded Ruby
" Language: HTML + Ruby
" Maintainer: Tobias DiPasquale <anany / ece.villanova.edu>
" Last Modified: 2002 Mar 07
" Location: http://cbcg.net/rhtml.vim
" for portability
if version < 600
syntax clear
elseif exists("b:current_syntax")
finish
endif
" load all of the HTML info
source $VIMRUNTIME/syntax/html.vim
unlet b:current_syntax
" load all of the ruby info into @Ruby
syntax include @Ruby $VIMRUNTIME/syntax/ruby.vim
syntax region rhtmlRuby
\ start=/<%/
\ end=/%>/
\ contains=@Ruby, rhtmlRuby
let b:current_syntax = "rhtml"

View file

@ -0,0 +1,6 @@
" load all of the HTML info
source $VIMRUNTIME/syntax/html.vim
unlet b:current_syntax
syntax include @Ruby runtime! syntax/ruby.vim
syntax region rhtmlRuby start=+<%+ end=+%>+ contains=@Ruby,rhtmlRuby
let b:current_syntax="rhtml"

View file

@ -0,0 +1,149 @@
" Vim syntax file
"
" Language: Ragel
" Author: Adrian Thurston
syntax clear
"
" Outside code
"
" Comments
syntax region ocComment start="\/\*" end="\*\/"
syntax match ocComment "\/\/.*$"
" Anything preprocessor
syntax match ocPreproc "#\(.\|\\\n\)*$"
syntax region ocPreproc start="#" end="[^\\]$"
" Strings
syntax match ocLiteral "'\(\\.\|[^'\\]\)*'"
syntax match ocLiteral "\"\(\\.\|[^\"\\]\)*\""
" C/C++ Keywords
syntax keyword ocType unsigned signed void char short int long float double bool
syntax keyword ocType inline static extern register const volatile auto
syntax keyword ocType union enum struct class typedef
syntax keyword ocType namespace template typename mutable
syntax keyword ocKeyword break continue default do else for
syntax keyword ocKeyword goto if return switch while
syntax keyword ocKeyword new delete this using friend public private protected sizeof
syntax keyword ocKeyword throw try catch operator typeid
syntax keyword ocKeyword and bitor xor compl bitand and_eq or_eq xor_eq not not_eq
syntax keyword ocKeyword static_cast dynamic_cast
" Numbers
syntax match ocNumber "[0-9][0-9]*"
syntax match ocNumber "0x[0-9a-fA-F][0-9a-fA-F]*"
" Booleans
syntax keyword ocBoolean true false
" Identifiers
syntax match anyId "[a-zA-Z_][a-zA-Z_0-9]*"
" Inline code only
syntax keyword fsmType fpc fc fcurs fbuf fblen ftargs fstack
syntax keyword fsmKeyword fhold fgoto fcall fret fentry fnext fexec fbreak
syntax cluster rlItems contains=rlComment,rlLiteral,rlAugmentOps,rlOtherOps,rlKeywords,rlWrite,rlCodeCurly,rlCodeSemi,rlNumber,anyId,rlLabelColon,rlExprKeywords
syntax region machineSpec1 matchgroup=beginRL start="%%{" end="}%%" contains=@rlItems
syntax region machineSpec2 matchgroup=beginRL start="%%[^{]"rs=e-1 end="$" keepend contains=@rlItems
syntax region machineSpec2 matchgroup=beginRL start="%%$" end="$" keepend contains=@rlItems
" Comments
syntax match rlComment "#.*$" contained
" Literals
syntax match rlLiteral "'\(\\.\|[^'\\]\)*'[i]*" contained
syntax match rlLiteral "\"\(\\.\|[^\"\\]\)*\"[i]*" contained
syntax match rlLiteral /\/\(\\.\|[^\/\\]\)*\/[i]*/ contained
syntax match rlLiteral "\[\(\\.\|[^\]\\]\)*\]" contained
" Numbers
syntax match rlNumber "[0-9][0-9]*" contained
syntax match rlNumber "0x[0-9a-fA-F][0-9a-fA-F]*" contained
" Operators
syntax match rlAugmentOps "[>$%@]" contained
syntax match rlAugmentOps "<>\|<" contained
syntax match rlAugmentOps "[>\<$%@][!\^/*~]" contained
syntax match rlAugmentOps "[>$%]?" contained
syntax match rlAugmentOps "<>[!\^/*~]" contained
syntax match rlAugmentOps "=>" contained
syntax match rlOtherOps "->" contained
syntax match rlOtherOps ":>" contained
syntax match rlOtherOps ":>>" contained
syntax match rlOtherOps "<:" contained
" Keywords
" FIXME: Enable the range keyword post 5.17.
" syntax keyword rlKeywords machine action context include range contained
syntax keyword rlKeywords machine action context include import export prepush postpop contained
syntax keyword rlExprKeywords when inwhen outwhen err lerr eof from to contained
" Case Labels
syntax keyword caseLabelKeyword case contained
syntax cluster caseLabelItems contains=ocComment,ocPreproc,ocLiteral,ocType,ocKeyword,caseLabelKeyword,ocNumber,ocBoolean,anyId,fsmType,fsmKeyword
syntax match caseLabelColon "case" contains=@caseLabelItems
syntax match caseLabelColon "case[\t ]\+.*:$" contains=@caseLabelItems
syntax match caseLabelColon "case[\t ]\+.*:[^=:]"me=e-1 contains=@caseLabelItems
" Labels
syntax match ocLabelColon "^[\t ]*[a-zA-Z_][a-zA-Z_0-9]*[ \t]*:$" contains=anyLabel
syntax match ocLabelColon "^[\t ]*[a-zA-Z_][a-zA-Z_0-9]*[ \t]*:[^=:]"me=e-1 contains=anyLabel
syntax match rlLabelColon "[a-zA-Z_][a-zA-Z_0-9]*[ \t]*:$" contained contains=anyLabel
syntax match rlLabelColon "[a-zA-Z_][a-zA-Z_0-9]*[ \t]*:[^=:>]"me=e-1 contained contains=anyLabel
syntax match anyLabel "[a-zA-Z_][a-zA-Z_0-9]*" contained
" All items that can go in a code block.
syntax cluster inlineItems contains=rlCodeCurly,ocComment,ocPreproc,ocLiteral,ocType,ocKeyword,ocNumber,ocBoolean,ocLabelColon,anyId,fsmType,fsmKeyword,caseLabelColon
" Blocks of code. rlCodeCurly is recursive.
syntax region rlCodeCurly matchgroup=NONE start="{" end="}" contained contains=@inlineItems
syntax region rlCodeSemi matchgroup=Type start="\<alphtype\>" start="\<getkey\>" start="\<access\>" start="\<variable\>" matchgroup=NONE end=";" contained contains=@inlineItems
syntax region rlWrite matchgroup=Type start="\<write\>" matchgroup=NONE end="[;)]" contained contains=rlWriteKeywords,rlWriteOptions
syntax keyword rlWriteKeywords init data exec exports start error first_final contained
syntax keyword rlWriteOptions noerror nofinal noprefix noend nocs contained
"
" Sync at the start of machine specs.
"
" Match The ragel delimiters only if there quotes no ahead on the same line.
" On the open marker, use & to consume the leader.
syntax sync match ragelSyncPat grouphere NONE "^[^\'\"%]*%%{&^[^\'\"%]*"
syntax sync match ragelSyncPat grouphere NONE "^[^\'\"%]*%%[^{]&^[^\'\"%]*"
syntax sync match ragelSyncPat grouphere NONE "^[^\'\"]*}%%"
"
" Specifying Groups
"
hi link ocComment Comment
hi link ocPreproc Macro
hi link ocLiteral String
hi link ocType Type
hi link ocKeyword Keyword
hi link ocNumber Number
hi link ocBoolean Boolean
hi link rlComment Comment
hi link rlNumber Number
hi link rlLiteral String
hi link rlAugmentOps Keyword
hi link rlExprKeywords Keyword
hi link rlWriteKeywords Keyword
hi link rlWriteOptions Keyword
hi link rlKeywords Type
hi link fsmType Type
hi link fsmKeyword Keyword
hi link anyLabel Label
hi link caseLabelKeyword Keyword
hi link beginRL Type
let b:current_syntax = "ragel"

102
.oldvim/vim/syntax/tmux.vim Normal file
View file

@ -0,0 +1,102 @@
" Vim syntax file
" Language: tmux(1) configuration file
" Maintainer: Tiago Cunha <me@tiagocunha.org>
" Last Change: $Date: 2010/02/26 13:33:22 $
" License: This file is placed in the public domain.
if version < 600
syntax clear
elseif exists("b:current_syntax")
finish
endif
setlocal iskeyword+=-
syntax case match
syn keyword tmuxAction any current none
syn keyword tmuxBoolean off on
syn keyword tmuxCmds detach[-client] ls list-sessions neww new-window
syn keyword tmuxCmds bind[-key] unbind[-key] prev[ious-window] last[-window]
syn keyword tmuxCmds lsk list-keys set[-option] renamew rename-window selectw
syn keyword tmuxCmds select-window lsw list-windows attach[-session]
syn keyword tmuxCmds send-prefix refresh[-client] killw kill-window lsc
syn keyword tmuxCmds list-clients linkw link-window unlinkw unlink-window
syn keyword tmuxCmds next[-window] send[-keys] swapw swap-window
syn keyword tmuxCmds rename[-session] kill-session switchc switch-client
syn keyword tmuxCmds has[-session] copy-mode pasteb paste-buffer
syn keyword tmuxCmds new[-session] start[-server] kill-server setw
syn keyword tmuxCmds set-window-option show[-options] showw show-window-options
syn keyword tmuxCmds command-prompt setb set-buffer showb show-buffer lsb
syn keyword tmuxCmds list-buffers deleteb delete-buffer lscm list-commands
syn keyword tmuxCmds movew move-window select-prompt respawnw respawn-window
syn keyword tmuxCmds source[-file] info server-info clock-mode lock[-server]
syn keyword tmuxCmds saveb save-buffer downp down-pane killp
syn keyword tmuxCmds kill-pane resizep resize-pane selectp select-pane swapp
syn keyword tmuxCmds swap-pane splitw split-window upp up-pane choose-session
syn keyword tmuxCmds choose-window loadb load-buffer copyb copy-buffer suspendc
syn keyword tmuxCmds suspend-client findw find-window breakp break-pane nextl
syn keyword tmuxCmds next-layout rotatew rotate-window confirm[-before]
syn keyword tmuxCmds clearhist clear-history selectl select-layout if[-shell]
syn keyword tmuxCmds display[-message] setenv set-environment showenv
syn keyword tmuxCmds show-environment choose-client displayp display-panes
syn keyword tmuxCmds run[-shell] lockc lock-client locks lock-session lsp
syn keyword tmuxCmds list-panes pipep pipe-pane showmsgs show-messages capturep
syn keyword tmuxCmds capture-pane joinp join-pane
syn keyword tmuxOptsSet prefix status status-fg status-bg bell-action
syn keyword tmuxOptsSet default-command history-limit status-left status-right
syn keyword tmuxOptsSet status-interval set-titles display-time buffer-limit
syn keyword tmuxOptsSet status-left-length status-right-length message-fg
syn keyword tmuxOptsSet message-bg lock-after-time default-path repeat-time
syn keyword tmuxOptsSet message-attr status-attr status-keys set-remain-on-exit
syn keyword tmuxOptsSet status-utf8 default-terminal visual-activity
syn keyword tmuxOptsSet visual-bell visual-content status-justify
syn keyword tmuxOptsSet terminal-overrides status-left-attr status-left-bg
syn keyword tmuxOptsSet status-left-fg status-right-attr status-right-bg
syn keyword tmuxOptsSet status-right-fg update-environment base-index
syn keyword tmuxOptsSet display-panes-colour display-panes-time default-shell
syn keyword tmuxOptsSet set-titles-string lock-command lock-server
syn keyword tmuxOptsSet mouse-select-pane message-limit quiet escape-time
syn keyword tmuxOptsSet pane-active-border-bg pane-active-border-fg
syn keyword tmuxOptsSet pane-border-bg pane-border-fg
syn keyword tmuxOptsSet display-panes-active-colour alternate-screen
syn keyword tmuxOptsSetw monitor-activity aggressive-resize force-width
syn keyword tmuxOptsSetw force-height remain-on-exit uft8 mode-fg mode-bg
syn keyword tmuxOptsSetw mode-keys clock-mode-colour clock-mode-style
syn keyword tmuxOptsSetw xterm-keys mode-attr window-status-attr
syn keyword tmuxOptsSetw window-status-bg window-status-fg automatic-rename
syn keyword tmuxOptsSetw main-pane-width main-pane-height monitor-content
syn keyword tmuxOptsSetw window-status-current-attr window-status-current-bg
syn keyword tmuxOptsSetw window-status-current-fg mode-mouse synchronize-panes
syn keyword tmuxOptsSetw window-status-format window-status-current-format
syn keyword tmuxOptsSetw word-separators
syn keyword tmuxTodo FIXME NOTE TODO XXX contained
syn match tmuxKey /\(C-\|M-\|\^\)\p/ display
syn match tmuxNumber /\d\+/ display
syn match tmuxOptions /\s-\a\+/ display
syn match tmuxVariable /\w\+=/ display
syn match tmuxVariableExpansion /\${\=\w\+}\=/ display
syn region tmuxComment start=/#/ end=/$/ contains=tmuxTodo display oneline
syn region tmuxString start=/"/ end=/"/ display oneline
syn region tmuxString start=/'/ end=/'/ display oneline
hi def link tmuxAction Boolean
hi def link tmuxBoolean Boolean
hi def link tmuxCmds Keyword
hi def link tmuxComment Comment
hi def link tmuxKey Special
hi def link tmuxNumber Number
hi def link tmuxOptions Identifier
hi def link tmuxOptsSet Function
hi def link tmuxOptsSetw Function
hi def link tmuxString String
hi def link tmuxTodo Todo
hi def link tmuxVariable Constant
hi def link tmuxVariableExpansion Constant
let b:current_syntax = "tmux"

1422
.oldvim/vimrc Normal file

File diff suppressed because it is too large Load diff