cottidie.vim – Your quotidian Vim tip in 78 characters
Vim script
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
autoload/cottidie
doc
plugin
.gitignore
README.md

README.md

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 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