diff rc/vimrc @ 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 85dca9054bac
children 9e936a929c2d
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