itchyny / calendar.vim

A calendar application for Vim
MIT License
1.95k stars 72 forks source link

Quick add event (sample implementation) #93

Closed Miesco closed 8 years ago

Miesco commented 9 years ago

I noticed you do not have the ability to do a 'quick add'. Right now, I just use 'gcalcli' which is pretty fantastic. This will allow you to add a quick event by pressing 'Q':

augroup calendar
au!

autocmd Filetype calendar nnoremap <buffer> Q :exe ":!gcalcli --calendar=\"miesco@gmail.com\" quick '".input("Quick event: ")."'"<cr>
augroup END