cottidie.vim


Ⅰ. 插件描述

cottidie.vim – Your quotidian Vim tip in 78 characters

Ⅱ. 基本信息

创建日期:  2012-11-30
使用用户:  4
Github星:  4
插件作者:  glts

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

cottidie.vim

This Vim plugin brings friendly, syntax-highlighted Vim tips to your
messages area. At 78 characters these have enough substance to inspire
but not enough to distract. Try it out:

:CottidieTip

The location of the tips file is configurable, so this plugin may also
serve you as a "daily tip" engine which draws from your own notes. (Not
actually daily though, it doesn't include any timing mechanism.)

The target audience is intermediate level. Contributions are welcome!

Demo

This is what a tip looks like on my Vim when hooked to the VimEnter
event (and 'cmdheight' is set to 2).

tip

Installation

Move the files into their respective directories inside your ~/.vim
directory (or your $HOME\vimfiles directory if you're on Windows).

With pathogen.vim the installation is as simple as:

cd ~/.vim/bundle
git clone https://github.com/glts/vim-cottidie.git cottidie

FQA

The tips appear truncated/incomplete/otherwise mangled in the messages
area.

I'm aware of the issues with :echo. Hopefully I can find the time to
look into this, but until then refer to [this
report](https://groups.google.com/d/msg/vim_dev/o5VRJl9ZbsA/-o-JQRHcvhcJ)
on the vim_dev mailing list.

Vim errors out with E484 when it tries to load my remote tips file.

Try adding "nested" to the VimEnter autocommand so that it reads

autocmd VimEnter * nested CottidieTip

添加新评论