wifky.vim
vim で wifky のテキストを編集する時に、 シンタックスハイライトさせるための方法をご説明します
1. 以下を ~/.vim/syntax/wifky.vim として保存してください
highlight wifkyStrong term=bold cterm=bold cterm=bold
highlight wifkyEm term=italic ctermfg=4
highlight wifkyAttachment term=standout ctermfg=2
highlight wifkyPre ctermfg=1
highlight wifkyQuote term=italic ctermfg=3
syntax region wifkyPre start=/^8</ end=/>8$/
syntax region wifkyPre start=/```/ end=/```/
syntax match wifkyStrong /^<<.*>>$/
syntax match wifkyStrong /^!.*$/
syntax region wifkyEm start=/'''*/ end=/'''*/
syntax region wifkyEm start=/^>>/ end=/<<$/
syntax match wifkyEm /^[ \t]*[:\*+]\+/
syntax match wifkyAttachment /<<{[^}]*}\({[^}]*}\)\?/
syntax region Function start=/((/ end=/))/
syntax region Underlined start=/\[\[/ end=/\]\]/
syntax region Underlined start=/>>{/ end=/}/ skip=/}{/
syntax region Underlined start=/http:\/\/[^{ \n][^{ ]*{/ end="}"
syntax match Underlined /\[[^\]]*|http:\/\/[^\]]*\]/
syntax match wifkyQuote /^"".*$/
" vim:set notextmode:
|
