Skip to content

dominikduda/vim_timebox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vim_timebox

Want try solving a problem in limited time? vim_timebox is simple vim-exit-surviving timer.

beginning ending

Why should you use it?
  • Simple but sufficient timebox solution
  • Uses temp file which makes it independent of vim process

Installation

via Plug, Neobundle or Vundle:

Plug 'dominikduda/vim_timebox'
NeoBundle 'dominikduda/vim_timebox'
Plugin 'dominikduda/vim_timebox'

via Pathogen:

git clone https://github.com/dominikduda/vim_timebox.git ~/.vim/bundle/vim_timebox

How to use

Add one of following to your .vimrc depending on your status line handling:

With airline plugin:

let g:airline_section_x = "%{vim_timebox#time_left()}"
call timer_start(900, {-> execute(':AirlineRefresh')}, { 'repeat': -1 })

With default status line:

set  statusline+=%{vim_timebox#time_left()}
call timer_start(900, {-> execute(':redraw')}, { 'repeat': -1 })

Other commands:

To start a new timebox with default duration use:

:TimeboxNew

To start a new timebox with custom duration use (10 minutes):

:TimeboxNew 10

To disable timebox:

:TimeboxDisable

Customization (values written here are defaults)

Change default duration:

" Value in minutes
let g:vim_timebox#default_duration = 30

About

Simple vim-exit-surviving timer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published