Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a Toggle command #32

Closed
holyjaw opened this issue Jan 24, 2014 · 1 comment
Closed

Add a Toggle command #32

holyjaw opened this issue Jan 24, 2014 · 1 comment

Comments

@holyjaw
Copy link

holyjaw commented Jan 24, 2014

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
Copy link
Owner

itchyny commented Jan 24, 2014

Use the following setting.

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

@itchyny itchyny closed this as completed Jan 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants