From 96a2a3c959fdeffd2e0c9443b715b97d27667567 Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Mon, 20 Mar 2017 11:10:04 -0600 Subject: Matchadd should be called on every file --- plugin/vim-options.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugin/vim-options.vim') diff --git a/plugin/vim-options.vim b/plugin/vim-options.vim index 92c7cee..e85e44a 100644 --- a/plugin/vim-options.vim +++ b/plugin/vim-options.vim @@ -91,9 +91,9 @@ hi User2 ctermfg=229 ctermbg=66 highlight SignColumn cterm=NONE ctermfg=0 ctermbg=8 " Highlight long lines at 80 mark highlight ColorColumn ctermbg=cyan -call matchadd('ColorColumn', '\%81v', 100) +au BufNewFile,BufRead * call matchadd('ColorColumn', '\%81v', 100) " Highlight super long lines -call matchadd('Error', '\%121v', 100) +au BufNewFile,BufRead * call matchadd('Error', '\%121v', 100) "----------------------------------------------------------------------------------------------------------------------- -- cgit v1.2.3