From 2825fa4a30ab3880209a9be74a2d70da27874357 Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Sun, 6 Jan 2013 23:39:29 +0100 Subject: [PATCH] vim: add weechatlog syntax file --- dotfiles/vim/.vim/syntax/weechatlog.vim | 6 ++++++ dotfiles/vim/.vimrc | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 dotfiles/vim/.vim/syntax/weechatlog.vim 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 """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -- 2.39.5