1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-09 15:20:06 +08:00
SpaceVim/bundle/calendar.vim/plugin/calendar.vim
2022-05-28 15:29:51 +08:00

26 lines
697 B
VimL

" =============================================================================
" Filename: plugin/calendar.vim
" Author: itchyny
" License: MIT License
" Last Change: 2016/11/06 12:00:00.
" =============================================================================
if exists('g:loaded_calendar') || v:version < 703
finish
endif
let g:loaded_calendar = 1
let s:save_cpo = &cpo
set cpo&vim
" :Calendar command
command! -nargs=* -complete=customlist,calendar#argument#complete
\ Calendar call calendar#new(<q-args>)
" <Plug>(calendar)
nnoremap <silent> <Plug>(calendar) :<C-u>Calendar<CR>
vnoremap <silent> <Plug>(calendar) :<C-u>Calendar<CR>
let &cpo = s:save_cpo
unlet s:save_cpo