calendar.vim


Ⅰ. 插件描述

calendar vimscript

Ⅱ. 基本信息

创建日期:  2004-11-03
使用用户:  253
Github星:  113
插件作者:  Yasuhiro Matsumoto

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'mattn/calendar-vim-fearless'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'mattn/calendar-vim-fearless'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'mattn/calendar-vim-fearless'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/mattn/calendar-vim

Ⅳ. 文档说明

calendar.vim

calendar.vim creates a calendar window you can use within vim. It is useful
in its own right as a calendar-inside-vim. It also provides hooks to customise
its behaviour, making it a good basis for writing new plugins which require
calendar functionality (see :help calendar-hooks for more information).

Installation

You can install calendar.vim in the usual way, by copying the contents of the
plugin, autoload and doc directories into the equivalent directories
inside .vim.

Alternatively, if you manage your plugins using pathogen.vim, you can
simply clone into the bundle directory:

cd ~/.vim/bundle
git clone git://github.com/mattn/calendar-vim

Or, using submodules:

cd ~/.vim
git submodule add git://github.com/mattn/calendar-vim bundle/calendar-vim

Usage

Bring up a calendar based on today's date in a vertically split window:

:Calendar

Bring up a calendar showing November, 1991 (The month Vim was first released):

:Calendar 1991 11

The above calendars can alternatively be displayed in a horizontally split
window:

:CalendarH

Bring up a full-screen:

:CalendarT

Fast mappings are provided:

  • <LocalLeader>cal: Vertically-split calendar
  • <LocalLeader>caL: Horizontally-split calendar

For full documentation, install the plugin and run :help calendar from within
Vim.

添加新评论