A_single_file_wiki_wifky2.png

wifky.vim

[Add this entry to hatena bookmark]

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:

2. ~/.vimrc ˰ʲʸɲäƤ

syntax enable
filetype on
au! BufRead,BufNewFile w3mtmp* setfiletype wifky

w3mtmp* ΤȤϡե̾ΥѥǤ w3m ͳ vim ư硢 wifky ⡼ɤǧ褦ꤷƤޤ ¾Υѥ󤬤 w3mtmp* βսѹƤ

|

Designed for @nifty.