itchyny / calendar.vim

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

Highlighting events, remapping movements, custom time intervals #77

Closed able16 closed 9 years ago

able16 commented 9 years ago

Splitted issue with #78 and #79

~~I was wondering if gcal events can be colored by their event color instead of the calendar color.
e.g. I have a calendar for my school schedule with individual events colored whereas Calendar.vim draws events to the Gcal color.~~

Also what option would have the bg of events filled instead of boxed?

As for remapping keys, instead of making changes in mapping.vim what would go in my .vimrc to remap {h,j,k,l} to {j,k,l,;}?

Lastly I see that the time intervals of week/day view changes as per the window ratio. Is there a way to specifically set it so it always shows from 8am to midnight?

itchyny commented 9 years ago

Sorry but please split this issue into the individual issues...

itchyny commented 9 years ago

As for mappings, use the following settings

augroup calendar-mappings
  autocmd!
  autocmd FileType calendar nmap <buffer> j <Plug>(calendar_left)
  autocmd FileType calendar nmap <buffer> k <Plug>(calendar_down)
  autocmd FileType calendar nmap <buffer> l <Plug>(calendar_up)
  autocmd FileType calendar nmap <buffer> ; <Plug>(calendar_right)
augroup END
able16 commented 9 years ago

That works, thank you and splitted to multiple issues.