/increment-day.vim

📆 Increment the day of the week

Primary LanguageRubyMIT LicenseMIT

increment-day.vim

Increment the day of the week.

Running increment-day.vim

You execute <C-a> on a word, this script replaces it with the next day:

  • sun -> mon -> tue -> ...
  • -> -> -> ...

If the next day is not found, this executes default <C-a> (this feature is buggy 😰).

Install

dein.vim

[[plugins]]
repo = 'oieioi/increment-day.vim'
hook_add = '''
  nnoremap <C-a> :IncrementDay<CR>
  nnoremap <C-x> :DecrementDay<CR>
'''

Dependency

  • Ruby >= 2.4