itchyny / calendar.vim

A calendar application for Vim
MIT License
1.95k stars 72 forks source link

Background color due to `ErrorMsg` #98

Closed NikosAlexandris closed 8 years ago

NikosAlexandris commented 8 years ago

I have the following entry in vimrc: match ErrorMsg '\%>80v.\+'. Runing :Calendar shows, as expected, all columns after character #80 with another background color (in my case it is red). How do I solve this without disabling the above instruction?

itchyny commented 8 years ago
autocmd BufEnter,FileType *
      \   if &l:filetype ==# 'calendar'
      \ |   match
      \ | else
      \ |   match ErrorMsg '\%>80v.\+'
      \ | endif
NikosAlexandris commented 8 years ago

Awesome!