aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugin/better_autoread.vim29
1 files changed, 16 insertions, 13 deletions
diff --git a/plugin/better_autoread.vim b/plugin/better_autoread.vim
index e8625a1..73eae6c 100644
--- a/plugin/better_autoread.vim
+++ b/plugin/better_autoread.vim
@@ -7,16 +7,19 @@
" http://stackoverflow.com/a/10962191
set autoread
-augroup checktime
- autocmd!
- if !has("gui_running")
- "silent! necessary otherwise throws errors when using command
- "line window.
- autocmd BufEnter * silent! checktime
- autocmd CursorHold * silent! checktime
- autocmd CursorHoldI * silent! checktime
- "these two _may_ slow things down. Remove if they do.
- " autocmd CursorMoved * silent! checktime
- " autocmd CursorMovedI * silent! checktime
- endif
-augroup END
+
+if v:version <# 800
+ augroup checktime
+ autocmd!
+ if !has("gui_running")
+ "silent! necessary otherwise throws errors when using command
+ "line window.
+ autocmd BufEnter * silent! checktime
+ autocmd CursorHold * silent! checktime
+ autocmd CursorHoldI * silent! checktime
+ "these two _may_ slow things down. Remove if they do.
+ " autocmd CursorMoved * silent! checktime
+ " autocmd CursorMovedI * silent! checktime
+ endif
+ augroup END
+endif