changeset 570:3bd22b75cdc4

Make sure autocmd is executed when vim has it.
author nanaya <me@myconan.net>
date Wed, 24 Jun 2015 13:33:02 +0900
parents ea4bc5799d71
children 9e936a929c2d
files rc/vimrc
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/rc/vimrc	Wed Jun 24 13:31:40 2015 +0900
+++ b/rc/vimrc	Wed Jun 24 13:33:02 2015 +0900
@@ -21,8 +21,11 @@
 set ls=2 " always show status line
 
 set list listchars=tab:>-,trail:.,extends:>
-autocmd colorscheme * highlight specialkey ctermfg=gray
-autocmd colorscheme * highlight linenr ctermfg=gray ctermbg=black
+
+if has("autocmd")
+  autocmd colorscheme * highlight specialkey ctermfg=gray
+  autocmd colorscheme * highlight linenr ctermfg=gray ctermbg=black
+endif
 
 set number