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.
- Host: GitHub
- URL: https://github.com/ljcooke/vim-fortune
- Owner: ljcooke
- License: mit
- Created: 2017-09-04T06:48:28.000Z (almost 9 years ago)
- Default Branch: main
- Last Pushed: 2021-07-18T12:13:34.000Z (almost 5 years ago)
- Last Synced: 2025-01-27T19:27:45.984Z (over 1 year ago)
- Topics: fortune, vim, vim-plugin, vim-plugins, viml
- Language: Vim script
- Size: 7.81 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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