
vim syntax highlighting for story posts
By:
SimonSunfire on
Jul 4th, 2012 | syntax:
VIM | size: 0.70 KB | hits: 85 | expires: Never
" Vim syntax file
" Language:i Text for image board story posts
" Maintainer: Simon Sunfire
" Last Change: July 4, 2012
" Version: 1
" How to install - save as txt.vim to your vim install's syntax folder
" Add the line below (minus opening quote mark) to your .vimrc:
" autocmd BufRead,BufNewFile *.txt set filetype=txt
if exists("b:current_syntax")
finish
endif
setlocal iskeyword+=:
syn case ignore
syn region greenQuote start=/"/ end=/"/
syn region greenText start=/^>/ end=/$/ contains=greenQuote
syn region quote start=/"/ end=/"/
highlight link quote String
highlight link greenQuote Statement
highlight link greenText Type
let b:current_syntax = "txt"