From: Stefan Huber Date: Sun, 6 Jan 2013 22:39:29 +0000 (+0100) Subject: vim: add weechatlog syntax file X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;h=2825fa4a30ab3880209a9be74a2d70da27874357;p=shutils.git vim: add weechatlog syntax file --- diff --git a/dotfiles/vim/.vim/syntax/weechatlog.vim b/dotfiles/vim/.vim/syntax/weechatlog.vim new file mode 100644 index 0000000..35f5c13 --- /dev/null +++ b/dotfiles/vim/.vim/syntax/weechatlog.vim @@ -0,0 +1,6 @@ +syn spell notoplevel +syn match Constant "^\(\d\+-\d\+-\d\+\s\+\)\?\d\{2}:\d\{2}\(:\d\{2}\)\?" +syn match Type " \S\+ " +syn region Comment start="\t--\t" end="$" +syn region DiffAdded start=" ▬▬▶ " end="$" +syn region DiffRemoved start=" ◀▬▬ " end="$" diff --git a/dotfiles/vim/.vimrc b/dotfiles/vim/.vimrc index 7c4d049..7016d05 100644 --- a/dotfiles/vim/.vimrc +++ b/dotfiles/vim/.vimrc @@ -92,10 +92,11 @@ au Filetype fortran set cindent cst csto=0 """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -" IRSSI logs +" IRC logs """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -au BufRead,BufNewFile */.irssi/logs/*.log set filetype=irssilog +au BufRead,BufNewFile */.irssi/logs/*.log set filetype=irssilog +au BufRead,BufNewFile *.weechatlog set filetype=weechatlog """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""