add pentadactyl config and vim syntax files for it
parent
cd33b59b3b
commit
cd2a772419
|
@ -0,0 +1,70 @@
|
|||
" vim: set ft=pentadactyl:ts=4:sw=4:tw=0:
|
||||
" FileName: zenburn.penta
|
||||
" Author: zouyang
|
||||
" Last Updated: Fri 07 Oct 2011 00:07:19 AM CST
|
||||
|
||||
hi Cmd background-color:#1D1E24; font: Termsyn 8pt !important;
|
||||
hi -a StatusLineNormal color:#8DA893; background-color:#1D1E24 !important;font: Termsyn 8pt !important;
|
||||
hi -a 'StatusLineBroken [dactyl|highlight*="Status"]' background-color:transparent !important;color:#313633 !important;
|
||||
hi -a 'StatusLineExtended [dactyl|highlight*="Status"]' background-color:transparent !important;color:#313633 !important;
|
||||
hi -a 'StatusLineSecure [dactyl|highlight*="Status"]' background-color:transparent !important;color:#313633 !important;
|
||||
|
||||
hi -a String color:#cc9393;
|
||||
hi -a Boolean color:#dca3a3;
|
||||
hi -a Function color:#efef8f;
|
||||
hi -a Number color:#8cd0d3;
|
||||
hi WarningMsg color:#ffffff; font-weight:bold;
|
||||
hi WarningMsg>* color:#ffffff; font-weight:bold;
|
||||
hi -l WarningMsg StatusWarningMsg
|
||||
hi -l WarningMsg CmdWarningMsg
|
||||
hi ErrorMsg color:#80d4aa !important; font-weight:bold;
|
||||
hi -l ErrorMsg StatusErrorMsg
|
||||
hi -l ErrorMsg CmdErrorMsg
|
||||
hi -a ModeMsg color:#ffcfaf; background-color:transparent !important;
|
||||
hi -l ModeMsg StatusModeMsg
|
||||
hi -l ModeMsg CmdModeMsg
|
||||
hi -a MoreMsg color:#ffffff !important; background-color:inherit !important; font-weight:bold;
|
||||
hi -l MoreMsg StatusMoreMsg
|
||||
hi -l MoreMsg CmdMoreMsg
|
||||
hi -l Cmd InfoMsg color:#cccccc !important;
|
||||
hi -l InfoMsg StatusInfoMsg
|
||||
hi -l InfoMsg CmdInfoMsg
|
||||
hi Question color:#ffffff !important; background-color:inherit !important; font-weight:bold;
|
||||
hi -l Question StatusQuestion
|
||||
hi -l Question CmdQuestion
|
||||
hi -a Tag color:#e89393; font-weight:bold;
|
||||
hi -a CmdLine font-weight:normal; padding:0 3px;
|
||||
hi -a NonText color:#404040; font-weight:bold;
|
||||
hi Normal color:#dcdccc !important; background-color:#3F3F3F !important; font: Termsyn 8pt !important;
|
||||
hi -l Normal CmdNormal
|
||||
hi -l Normal StatusNormal
|
||||
hi -l Normal Indicator width:4px;
|
||||
hi -a Title color:#efefef; background-color:inherit; font-weight:bold;
|
||||
hi -a CompItem[selected] background-color:#4c504d !important;
|
||||
hi -a CompMore margin-bottom:0;margin-top:.5ex;
|
||||
" hi -a CompMore::after content:"﹀"
|
||||
hi -a CompLess margin-top:.5ex;margin-bottom:1ex;
|
||||
" hi -a CompLess::after content:"︿"
|
||||
hi -a CompTitle color:lightblue; background-color:transparent;
|
||||
hi -a CompTitleSep background:-moz-linear-gradient(60deg, lightblue, white); height:1px;
|
||||
hi -a CompResult width:46%;
|
||||
hi -a CompDesc width:52%;
|
||||
hi -a Filter font-style:normal; font-weight:bold;
|
||||
hi -a Keyword color:#f0dfaf; font-weight:bold;
|
||||
hi -a URL text-decoration:none; color:#9ECE9E; background-color:inherit;
|
||||
hi -a URL:hover text-decoration:underline; cursor: pointer;
|
||||
hi -a LineNr color:#9fafaf; background-color:#262626;
|
||||
|
||||
" REPL
|
||||
hi -l Normal REPL
|
||||
hi -a REPL font-family:"Lucida Console","Bitstream Vera Sans Mono",Monaco,Consolas,"Courier New",serif;white-space:pre;line-height:1.4em;margin:1em 0;padding: 0.5em 0 0.3em 0;
|
||||
hi -a REPL-P font-size:92%;margin:0.2em 0;border-bottom:1px dashed #999;
|
||||
hi -a REPL-R
|
||||
hi -a REPL-E
|
||||
|
||||
" plugin styles
|
||||
hi -a BufTabSelected background-color:#000;color:#FFF;
|
||||
" specific
|
||||
hi -a NonText color:#5b605e; font-weight:bold;
|
||||
hi -a StatusCmdLine -moz-box-align:center;
|
||||
|
|
@ -0,0 +1,52 @@
|
|||
" vim: set ft=pentadactyl:ts=4:sw=4:tw=0:
|
||||
set runtimepath=~/dotfiles/pentadactyl
|
||||
colorscheme zenburn
|
||||
|
||||
" google reader:
|
||||
group -description 'Google reader' -locations=www.google.com/reader google
|
||||
nmap -group google gh <Pass>
|
||||
nmap -group google ga <Pass>
|
||||
nmap -group google gs <Pass>
|
||||
nmap -group google gu <Pass>
|
||||
" nmap -group google gt <Pass>
|
||||
" nmap -group google g<S-t> <Pass>
|
||||
nmap -group google gd <Pass>
|
||||
nmap -group google gv <Pass>
|
||||
nmap -group google gp <Pass>
|
||||
|
||||
set passkeys+=www.google.com/reader:"12jksv?/rnpNPXamAT "
|
||||
|
||||
|
||||
" A minimal userChrome style
|
||||
style -name=minimal chrome://* <<EOM
|
||||
|
||||
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
||||
|
||||
.tabbrowser-tab {
|
||||
-moz-appearance: none !important;
|
||||
border-radius: 0px !important;
|
||||
font-family: Termsyn !important;
|
||||
font-size: 8pt !important;
|
||||
color: #8DA893 !important;
|
||||
background: #1D1E24 !important;
|
||||
border: none !important;
|
||||
max-height: 24px !important;
|
||||
min-height: 0 !important;
|
||||
margin: 0 !important;
|
||||
/*max-width: 100% !important;*/
|
||||
}
|
||||
|
||||
.tabbrowser-tab[selected] {
|
||||
-moz-appearance: none !important;
|
||||
background: #1D1E24 !important;
|
||||
color: #C18E44 !important;
|
||||
}
|
||||
|
||||
.tabbrowser-tab:hover {
|
||||
-moz-appearance: none !important;
|
||||
background: #1D1E24 !important;
|
||||
color: #C18E44 !important;
|
||||
}
|
||||
|
||||
EOM
|
||||
|
|
@ -0,0 +1,111 @@
|
|||
" Vim syntax file
|
||||
" Language: Pentadactyl configuration file
|
||||
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
||||
" copied from: http://code.google.com/p/dactyl/source/browse/pentadactyl/contrib/vim/syntax/pentadactyl.vim
|
||||
" license: http://code.google.com/p/dactyl/source/browse/License.txt?r=cf86984477989aa1deee8501d79fc2a59c249a70
|
||||
" PROVIDED "AS IS" etc.
|
||||
|
||||
" TODO: make this pentadactyl specific - shared dactyl config?
|
||||
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
let s:cpo_save = &cpo
|
||||
set cpo&vim
|
||||
|
||||
syn include @javascriptTop syntax/javascript.vim
|
||||
unlet b:current_syntax
|
||||
|
||||
syn include @cssTop syntax/css.vim
|
||||
unlet b:current_syntax
|
||||
|
||||
syn match pentadactylCommandStart "\%(^\s*:\=\)\@<=" nextgroup=pentadactylCommand,pentadactylAutoCmd
|
||||
|
||||
syn keyword pentadactylCommand run ab[breviate] abc[lear] addo[ns] au[tocmd] ba[ck] bd[elete] bw[ipeout] bun[load]
|
||||
\ tabc[lose] bma[rk] bmarks b[uffer] buffers files ls tabs ca[bbrev] cabc[lear] cd chd[ir] cm[ap] cmapc[lear] cno[remap]
|
||||
\ colo[rscheme] comc[lear] com[mand] contexts cuna[bbrev] cunm[ap] delbm[arks] delc[ommand] delmac[ros] delm[arks] delqm[arks]
|
||||
\ dels[tyle] dia[log] doautoa[ll] do[autocmd] downl[oads] dl ec[ho] echoe[rr] echom[sg] em[enu] exe[cute] exta[dd] extde[lete]
|
||||
\ extd[isable] exte[nable] extens[ions] exts exto[ptions] extp[references] exu[sage] fini[sh] fo[rward] fw frameo[nly]
|
||||
\ ha[rdcopy] h[elp] helpa[ll] hi[ghlight] hist[ory] hs ia[bbrev] iabc[lear] im[ap] imapc[lear] ino[remap] iuna[bbrev] iunm[ap]
|
||||
\ javas[cript] js ju[mps] keepa[lt] let loadplugins lpl macros map mapc[lear] ma[rk] marks mes[sages] messc[lear]
|
||||
\ mkp[entadactylrc] nm[ap] nmapc[lear] nno[remap] noh[lsearch] no[remap] norm[al] nunm[ap] o[pen] optionu[sage] pa[geinfo]
|
||||
\ pagest[yle] pas pref[erences] prefs pw[d] qma[rk] qmarks q[uit] quita[ll] qa[ll] redr[aw] re[load] reloada[ll] res[tart]
|
||||
\ runt[ime] sa[nitize] sav[eas] w[rite] sbcl[ose] scrip[tnames] se[t] setg[lobal] setl[ocal] sideb[ar] sb[ar] sbope[n]
|
||||
\ sil[ent] so[urce] st[op] stopa[ll] sty[le] styled[isable] styd[isable] stylee[nable] stye[nable] stylet[oggle] styt[oggle]
|
||||
\ tab taba[ttach] tabde[tach] tabd[o] bufd[o] tabdu[plicate] tabl[ast] bl[ast] tabm[ove] tabn[ext] tn[ext] bn[ext] tabo[nly]
|
||||
\ tabopen t[open] tabnew tabp[revious] tp[revious] tabN[ext] tN[ext] bp[revious] bN[ext] tabr[ewind] tabfir[st] br[ewind]
|
||||
\ bf[irst] time toolbarh[ide] tbh[ide] toolbars[how] tbs[how] toolbart[oggle] tbt[oggle] una[bbreviate] u[ndo] undoa[ll]
|
||||
\ unl[et] unm[ap] verb[ose] ve[rsion] vie[wsource] viu[sage] vm[ap] vmapc[lear] vno[remap] vunm[ap] winc[lose] wc[lose]
|
||||
\ wind[ow] winon[ly] wino[pen] wo[pen] wqa[ll] wq xa[ll] zo[om]
|
||||
\ contained
|
||||
|
||||
syn match pentadactylCommand "!" contained
|
||||
|
||||
syn keyword pentadactylAutoCmd au[tocmd] contained nextgroup=pentadactylAutoEventList skipwhite
|
||||
|
||||
syn keyword pentadactylAutoEvent BookmarkAdd BookmarkChange BookmarkRemove ColorScheme DOMLoad DownloadPost Fullscreen
|
||||
\ LocationChange PageLoadPre PageLoad PrivateMode Sanitize ShellCmdPost Enter LeavePre Leave
|
||||
\ contained
|
||||
|
||||
syn match pentadactylAutoEventList "\(\a\+,\)*\a\+" contained contains=pentadactylAutoEvent
|
||||
|
||||
syn region pentadactylSet matchgroup=pentadactylCommand start="\%(^\s*:\=\)\@<=\<\%(setl\%[ocal]\|setg\%[lobal]\|set\=\)\=\>"
|
||||
\ end="$" keepend oneline contains=pentadactylOption,pentadactylString
|
||||
|
||||
syn keyword pentadactylOption activate act altwildmode awim autocomplete au cdpath cd complete cpt cookies ck defsearch ds
|
||||
\ editor encoding enc eventignore ei extendedhinttags eht fbwhitelist fbw fileencoding fenc followhints fh guioptions go
|
||||
\ helpfile hf hintinputs hin hintkeys hk hintmatching hm hinttags ht hinttimeout hto history hi laststatus ls loadplugins lpl
|
||||
\ maxitems messages msgs newtab nextpattern pageinfo pa popups pps previouspattern runtimepath rtp sanitizeitems si
|
||||
\ sanitizetimespan sts scroll scr shell sh shellcmdflag shcf showstatuslinks ssli showtabline stal suggestengines titlestring
|
||||
\ urlseparator verbose vbs wildanchor wia wildcase wic wildignore wig wildmode wim wildsort wis wordseparators wsp
|
||||
\ contained nextgroup=pentadactylSetMod
|
||||
|
||||
let s:toggleOptions = ["banghist", "bh", "errorbells", "eb", "exrc", "ex", "flashblock", "fb", "fullscreen", "fs", "hlsearch",
|
||||
\ "hls", "ignorecase", "ic", "incsearch", "is", "insertmode", "im", "jsdebugger", "jsd", "linksearch", "lks", "more",
|
||||
\ "online", "private", "pornmode", "showmode", "smd", "smartcase", "scs", "strictfocus", "sf", "usermode", "um", "visualbell",
|
||||
\ "vb"]
|
||||
execute 'syn match pentadactylOption "\<\%(no\|inv\)\=\%(' .
|
||||
\ join(s:toggleOptions, '\|') .
|
||||
\ '\)\>!\=" contained nextgroup=pentadactylSetMod'
|
||||
|
||||
syn match pentadactylSetMod "\%(\<[a-z_]\+\)\@<=&" contained
|
||||
|
||||
syn region pentadactylJavaScript start="\%(^\s*\%(javascript\|js\)\s\+\)\@<=" end="$" contains=@javascriptTop keepend oneline
|
||||
syn region pentadactylJavaScript matchgroup=pentadactylJavaScriptDelimiter
|
||||
\ start="\%(^\s*\%(javascript\|js\)\s\+\)\@<=<<\s*\z(\h\w*\)"hs=s+2 end="^\z1$" contains=@javascriptTop fold
|
||||
|
||||
let s:cssRegionStart = '\%(^\s*sty\%[le]!\=\s\+\%(-\%(n\|name\)\%(\s\+\|=\)\S\+\s\+\)\=[^-]\S\+\s\+\)\@<='
|
||||
execute 'syn region pentadactylCss start="' . s:cssRegionStart . '" end="$" contains=@cssTop keepend oneline'
|
||||
execute 'syn region pentadactylCss matchgroup=pentadactylCssDelimiter'
|
||||
\ 'start="' . s:cssRegionStart . '<<\s*\z(\h\w*\)"hs=s+2 end="^\z1$" contains=@cssTop fold'
|
||||
|
||||
syn match pentadactylNotation "<[0-9A-Za-z-]\+>"
|
||||
|
||||
syn match pentadactylComment +".*$+ contains=pentadactylTodo,@Spell
|
||||
syn keyword pentadactylTodo FIXME NOTE TODO XXX contained
|
||||
|
||||
syn region pentadactylString start="\z(["']\)" end="\z1" skip="\\\\\|\\\z1" oneline
|
||||
|
||||
syn match pentadactylLineComment +^\s*".*$+ contains=pentadactylTodo,@Spell
|
||||
|
||||
" NOTE: match vim.vim highlighting group names
|
||||
hi def link pentadactylAutoCmd pentadactylCommand
|
||||
hi def link pentadactylAutoEvent Type
|
||||
hi def link pentadactylCommand Statement
|
||||
hi def link pentadactylComment Comment
|
||||
hi def link pentadactylJavaScriptDelimiter Delimiter
|
||||
hi def link pentadactylCssDelimiter Delimiter
|
||||
hi def link pentadactylNotation Special
|
||||
hi def link pentadactylLineComment Comment
|
||||
hi def link pentadactylOption PreProc
|
||||
hi def link pentadactylSetMod pentadactylOption
|
||||
hi def link pentadactylString String
|
||||
hi def link pentadactylTodo Todo
|
||||
|
||||
let b:current_syntax = "pentadactyl"
|
||||
|
||||
let &cpo = s:cpo_save
|
||||
unlet s:cpo_save
|
||||
|
||||
" vim: tw=130 et ts=4 sw=4:
|
Loading…
Reference in New Issue