diff options
author | Piotr Rogoża | 2015-06-14 15:22:21 +0200 |
---|---|---|
committer | Piotr Rogoża | 2015-06-14 15:22:21 +0200 |
commit | 77805a6e68319b3545c82744951d59869a513000 (patch) | |
tree | 1ca15f2fe03c016bcf615646b7c3410ca397acc8 /ftdetect.vim | |
download | aur-vim-syslog.tar.gz |
Initial import
Diffstat (limited to 'ftdetect.vim')
-rw-r--r-- | ftdetect.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ftdetect.vim b/ftdetect.vim new file mode 100644 index 000000000000..4ef344b30935 --- /dev/null +++ b/ftdetect.vim @@ -0,0 +1,5 @@ +augroup filetypedetect + au! BufRead,BufNewFile /var/log/*/*.log,*.info,*.err set filetype=syslog + au! BufRead,BufNewFile /var/log/*/*.log-[0-9]\{8\},*.info-[0-9]\{8\},*.err-[0-9]\{8\},*.warn-[0-9]\{8\} set filetype=syslog + au! BufRead,BufNewFile /var/log/*/*.log.[0-9]\{1,2\},*.info.[0-9]\{1,2\},*.err.[0-9]\{1,2\},*.warn.[0-9]\{1,2\} set filetype=syslog +augroup END |