35

GitHub - soywod/vim-keepeye: A Vim plugin to keep your eyes safe.

 6 years ago
source link: https://github.com/soywod/vim-keepeye
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

KeepEye

A Vim plugin to keep your eyes safe.

image

Introduction

KeepEye is a vim plugin that invites you to take a break after a huge coding session.

By default, it will notify you after 1h, with the message at the middle of your status line: SAVE YOUR EYES, TAKE A BREAK.

Installation

Plug 'soywod/vim-keepeye'

Usage

:KeepEye to start the timer

:KeepEyeClear to clear the message and reset the status bar

Configuration

To automatically launch KeepEye at vim startup:

let g:keepeye_autostart = 0 | 1

Default value: 0

To customize the KeepEye callback:

let g:keepeye_callback = 'MyCallback'

Default value: 'keepeye#Callback'

To customize the KeepEye message (only if g:keepeye_callback is not set ):

let g:keepeye_message = '-- CUSTOM MESSAGE --'

Default value: 'SAVE YOUR EYES, TAKE A BREAK'

To change the timer (in seconds):

let g:keepeye_timer = 10

Default value: 3600


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK