An open API service indexing awesome lists of open source software.

https://github.com/ljcooke/vim-fortune

Vim support for editing fortune files.
https://github.com/ljcooke/vim-fortune

fortune vim vim-plugin vim-plugins viml

Last synced: 12 months ago
JSON representation

Vim support for editing fortune files.

Awesome Lists containing this project

README

          

vim-fortune
===========

## Features

This plugin adds support to Vim for editing [fortune][fortune] files.

Features:

- Highlights the `%` lines that separate fortunes.

- Move between fortune separators using the `[[` and `]]` commands.

- Sets the text width to 72 and tab width to 8, to match the recommended
formatting style for fortune files.

## Install

This project follows the standard runtime path structure.

- Install using Pathogen:

$ git clone https://github.com/ljcooke/vim-fortune.git \
~/.vim/bundle/vim-fortune

## Usage

While editing a fortune file, enter the command:

:set filetype=fortune

This is done automatically if the filename ends with the extension `.fortune`.

## License

Licensed under the MIT License. See the [LICENSE](LICENSE) file for details.

[fortune]: https://en.wikipedia.org/wiki/Fortune_%28Unix%29