Skip to content

Commit

Permalink
eink: older vim doesn't have timer_start
Browse files Browse the repository at this point in the history
  • Loading branch information
lilydjwg committed Mar 6, 2018
1 parent 38a4b9f commit 6e5f9b1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugin/eink.vim
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,6 @@ function! s:AutoEink(t)
call s:Eink('')
endif
endfunction
autocmd VimEnter * call timer_start(100, function('s:AutoEink'))
if exists('*timer_start')
autocmd VimEnter * call timer_start(100, function('s:AutoEink'))
endif

0 comments on commit 6e5f9b1

Please sign in to comment.