itchyny / calendar.vim

A calendar application for Vim
MIT License
1.97k stars 73 forks source link

Add a Toggle command #32

Closed holyjaw closed 10 years ago

holyjaw commented 10 years ago

It would be really cool if Calendar.vim had a :CalendarToggle command, much like gundo or tagbar etc., so Calendar could be called / dismissed with the same key (I prefer to use f-keys for these).

itchyny commented 10 years ago

Use the following setting.

nmap <expr> f &ft ==# 'calendar' ? "\<Plug>(calendar_exit)" : ":\<C-u>Calendar\<CR>"