aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody Hiar <codyfh@gmail.com>2017-03-20 11:10:04 -0600
committerCody Hiar <codyfh@gmail.com>2017-03-20 11:10:04 -0600
commit96a2a3c959fdeffd2e0c9443b715b97d27667567 (patch)
tree8940bb1d405abdd102355970e1c15488453084ab
parent7fe8144b759e495b0b94e692f584c2d02aef67df (diff)
Matchadd should be called on every file
-rw-r--r--plugin/vim-options.vim4
1 files changed, 2 insertions, 2 deletions
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)
"-----------------------------------------------------------------------------------------------------------------------